PHP Classes

$_SESSION

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  $_SESSION  
Subject:$_SESSION
Summary:Back button doesn't keep session variables
Messages:3
Author:Rob Grattan
Date:2009-01-20 08:48:48
Update:2009-02-03 04:48:13
 

  1. $_SESSION   Reply   Report abuse  
Picture of Rob Grattan Rob Grattan - 2009-01-20 18:27:40
OK, simple scenario.

a.php has some post variables that are sent to b.php

b.php sets a session variable 'visited' to flag that it has been opened.

a.php looks to see if the session variable 'visited' has been set. If so, it reloads the post variables, also held in session variable.

However, pressing the 'Back' button from b.php doesn't pass the 'visited' session variable so the post fields in a.php are unpopulated.

BUT - press F6 when revisiting a.php and the session variables are in scope and all works properly - even after going to b.pgp and pressing the 'Back' button.

Is there some behaviour I'm overlooking here?

Any help appreciated, Rob

There are 2 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.