Re: Firefox session continue after closing...
- From: j80k-vpfc@xxxxxxxxxxxxxxx (Steve)
- Date: Sat, 5 Sep 2009 13:00 +0100 (BST)
In article
<26d03ea1-d209-41e3-8f24-99e833688a54@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
j.andersen.lv@xxxxxxxxx (John Andersen) wrote:
On Sep 3, 2:53 pm, "JohnH" <nospam.ple...@xxxxxxxxxx> wrote:
Hi,
I have used sessions to manage access to a website. Basically the
user logs
in and if a valid user is assigned a user id to a session
variable. If the
user tries to access a page before logging in then the php code
looks to see
if the session variable is set, if it is not then the user is
redirected to
the login page.
In IE if I close the browser, the session is destroyed and
attempting to
access the system does indeed redirect me to the login page.
In Firefox, if there is more than one tab open, on closing the
browser it
prompts to see if I want to save the tabs. If I answer yes, then
when I
repoen the browser it resumes the tab with the session still
open! How can I
stop this? Or how should I re-work my use of sessions to ensure
that the
borwser does not open with the last session active?
Any help greatly appreciated!
John
*Subject:* Re: Firefox session continue after closing...This is exactly what I do. I have a 'Travellers Blog' on one of my sites,
*From:* John Andersen <j.andersen.lv@xxxxxxxxx>
*Date:* Thu, 3 Sep 2009 05:50:35 -0700 (PDT)
Hi John,
You should ensure that your session is timed, and renew it whenever
the user performs an action on your site. If the user closes FF and
later opens it, and the time has expired, destroy the session and
request a new authentication!
Enjoy,
John, Latvia
and is only ever accessed from internet cafes. A short timeout on the
session ensures that anyone following the travellers onto the machine,
cannot gain access to the blog editing pages. Since the blog entry is
built up offline and entered from a memory stick, this doesn't present us
with a 'session expired' problem encountered on many sites.
- Steve
[Top posting fixed]
.
- References:
- Re: Firefox session continue after closing...
- From: John Andersen
- Re: Firefox session continue after closing...
- Prev by Date: mysql_real_escape_string problem
- Next by Date: Re: mysql_real_escape_string problem
- Previous by thread: Re: Firefox session continue after closing...
- Next by thread: Re: Firefox session continue after closing...
- Index(es):
Relevant Pages
|