public
Homepage: http://mutuallyhuman.com
Clone URL: git://github.com/mvanholstyn/mhs_authentication_system.git
Click here to lend your support to: mhs_authentication_system and make a donation at www.pledgie.com !
Reset session by default when logging out -- option to not reset session
mvanholstyn (author)
Fri May 23 13:25:21 -0700 2008
commit  7e71698d6946891c7dc6977f2b59df566d1f26ee
tree    2f28dabcf45a7036a85623c383583f969dce385c
parent  9003266923974cdf4781d4b172533c8817654a15
...
41
42
43
44
 
 
45
46
47
...
163
164
165
 
166
167
168
...
41
42
43
 
44
45
46
47
48
...
164
165
166
167
168
169
170
0
@@ -41,7 +41,8 @@ module Mhs
0
             :reminder_login_duration => 2.hours,
0
             :reminder_email_subject => "Support Reminder",
0
             :signup_email_subject => "Welcome",
0
- :track_pre_login_url => true
0
+ :track_pre_login_url => true,
0
+ :reset_session_after_logout => true
0
           }.merge( options )
0
           
0
           if mhs_authentication_system_options[:allow_signup]
0
@@ -163,6 +164,7 @@ module Mhs
0
             current_user.forget_me!
0
             cookies.delete(:remember_me_token)
0
             set_current_user nil
0
+ reset_session if self.class.mhs_authentication_system_options[:reset_session_after_logout]
0
           end
0
           redirect_to self.instance_eval( &self.class.mhs_authentication_system_options[:redirect_after_logout] )
0
         end

Comments

    No one has commented yet.