FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Expire session on browser close or back button
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Expire session on browser close or back button [message #172875 is a reply to message #172868] Tue, 08 March 2011 17:51 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On 07/03/11 09:45, mohan wrote:
> I am developing one website in which I have the following requirements
> which are pretty much similar to banking website behavior:
> - Expire session when browser is closed

session cookie

> - Expire session when user clicks on back button of browser

client side onunload event that uses XMLHttpRequest to notify the server
to end the session - this will only work if the person viewing the page
has javascript enabled, and hasn't over-ridden onunload events handlers
for the website eg using greasemonkey in firefox.

> - Do not show the page if user directly copy pastes the URL to
> navigate to a page

check the referrer

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: hai
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 06:28:07 GMT 2024

Total time taken to generate the page: 0.04442 seconds