Re: Firefox session continue after closing...



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...
*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


This is exactly what I do. I have a 'Travellers Blog' on one of my sites,
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]
.



Relevant Pages

  • Re: Excessive Event ID 9646 in Exchange 2003
    ... In the original post, it was session limits ... Open the files in Microsoft Excel. ... opens more than the default value of certain server objects ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.exchange.admin)
  • Re: Concurrent script-access
    ... Do you use a session maybe that blocks access to the same session ... Server receives request for jobs.php, and opens the session ... You script runs a long time ... Now you open the same pahe in another tab ...
    (comp.lang.php)
  • Re: Concurrent script-access
    ... When trying to open the same script in another Firefox tab, ... Do you use a session maybe that blocks access to the same session (not ... Server receives request for jobs.php, and opens the session ...
    (comp.lang.php)
  • Re: wont open in other windows - sessions
    ... new thread, give us the version of Windows you are using, exact wording of ... How to make a good newsgroup post: ... session of ie it opens in place of the previous session - so I cant ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Excel Sheets Opens Itself Again After ADO Query ! Please Help
    ... I have an excel session already open on my ... I open a new, fresh, Excel session and open my file, with the ... I'd rather not use SQL queries cuz reason why choose SQL was because it ... Hope this opens the discussion more. ...
    (microsoft.public.excel.programming)