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 #172876 is a reply to message #172868] Tue, 08 March 2011 20:14 Go to previous message
D. Stussy is currently offline  D. Stussy
Messages: 2
Registered: March 2011
Karma:
Junior Member
"mohan" <kodaliece(at)gmail(dot)com> wrote in message
news:2fd4901b-a947-4a21-9727-4224bb2b6b25(at)l14g2000pre(dot)googlegroups(dot)com...
> 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

A session cookie will expire automatically without an expires field.

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

Not possible. All pages are part of the session. However, using an
"Expires:" header (with a date in the past) on individual pages (not the
expires field for the session cookie) might provide you with what you need.

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

Check the request's "Referer:" header. If it's blank, then either the URL
was directly entered or the header is disabled in the browser.

> Can someone please provide me suggestion on how to implement this. I
> am using Centos, nginx and php combination.
[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 03:36:59 GMT 2024

Total time taken to generate the page: 0.05404 seconds