README.rdoc in global_session-1.1.0 vs README.rdoc in global_session-2.0.0

- old
+ new

@@ -50,19 +50,10 @@ 4) Make use of the global session hash in your controllers: global_session['user'] = @user.id ... @current_user = User.find(global_session['user']) -5) For easier programming, enable seamless integration with the local session: - (in global_session.yml) - common: - integrated: true - - (in your controllers) - session['user'] = @user.id #goes to the global session - session['local_thingie'] = @thingie.id #goes to the local session - = Global Session Contents Global session state is stored as a cookie in the user's browser. The cookie is a Zlib-compressed JSON dictionary containing the following stuff: * session metadata (UUID, created-at, expires-at, signing-authority) @@ -174,9 +165,8 @@ extends Directory and put the class somewhere in your app (the lib directory is a good choice). In the GlobalSession configuration file, specify the class name of the directory under the 'common' section, like so: common: - integrated: true directory: MyCoolDirectory Copyright (c) 2010 Tony Spataro <code@tracker.xeger.net>, released under the MIT license