Hi,

i have the cflogin page set up on the application.cfc page as it is in 
coldfusion livedocs.

i have a logout button on each page - when the user clicks the button it goes 
to a page to set a session variable logoutrequested and sends the user back to 
the login page. the application.cfc page then detects this session variable and 
logs out the user. 
 
this is the current code to logout the user:

<!--- If the user logs out then the session.logoutRequested will be defined 
which is set in the logout actionpage. The following cflogin tag runs as a 
result. --->
   <cfif IsDefined("session.logoutRequested")>
    <cfset structdelete(session, "logoutRequested")>
    <cflogout>
   </cfif>

this works fine - once logged out the user can log back in fine. However, i 
have noticed that if the user closes the browser instead of logging out in the 
way shown above then when i restart the browser and try to log on, it doesnt 
log the user on correctly as it doesnt seem to enter the <cflogin> tag.

hope this makes sense.. just wondering what is causing this and how i could get 
round it. i have tried creating an onSessionEnd function in the application.cfc 
with the <cflogout> tag but that isnt working either

Thanks for your help

Richard
     
      
      

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293092
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to