Stupid $_SESSION question

From: Bonge Boo! (bingbong_at_spamcop.net)
Date: 02/25/05


Date: Fri, 25 Feb 2005 09:28:34 +0000

In another thread (Stupid setcookie() question I was asking about making
multiple page forms and the best way to maintain the state of the form as
people went through it.

A number of people suggested that the best way to do this was with sessions,
rather tha nthe cookies I was going to use. However my requirement was that
even after the browser window was closed, the next time the visitor came
back they would be able to carry on were they left of.

Ok.

The session works fine. They persist as long as the session_cache_expire
variable sets them to.

However, if you close the browser, the session gets destroyed. Anyway around
this?

I'm sure the answer is no, but...

Is there are superglobal that encompasses BOTH cookies and session?



Relevant Pages

  • Re: concept of session in J2EE
    ... If I have an application open and I open a new browser window at one ... I was trying to find out if I need to synchronize access to ... any session variables in servlet code or that is not necessary. ... As an addition to the other comments, it's probably worth adding that the main reason for synchronizing access to an HttpSession is because there may be multiple requests in the *same* session...that is, same browser, same tab etc. ...
    (comp.lang.java.programmer)
  • Re: Attempt to de-mystify AJAX
    ... our shopping cart cookies are ... >> the session from the temp files and the cookie will automatically expire ... > the session key is valid (inactivity time limit not reached). ... > What will happen, however, is that if the browser window goes away, the ...
    (comp.databases.pick)
  • Session lost after showModalDialog or showModelessDialog
    ... All three forms write out the session id the browser window and that the ... Form2 writes out the session id and has a html button which opens Form 3 ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Counting number of users logged in
    ... unless you're using the Membership class for logins. ... session state management and relying on counting the number of sessions active. ... just closed the browser window, or those who have left the browser open ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session data overwritten when using two browser instances (CTR+N)
    ... The culprint is the way the second browser window is opened. ... share session variables and when the user change event in browser window no ... the session variables is changed also for browser window no 1. ...
    (microsoft.public.dotnet.framework.aspnet)