Re: Erasing a QFC container session upon a re-visit

From: Date: Tue, 07 Oct 2003 14:00:05 +0000
Subject: Re: Erasing a QFC container session upon a re-visit
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8318@lists.php.net to get a copy of this message
<mikeatwork@ukonline.co.uk> wrote : > Hi, > > I'd like to clear the QFC container session if the user goes back to the > PHP page later on. > Is there a recommended/clean way to test and erase the session upon a > user coming back to a QFC based page? > > My initial thoughts where to check the HTTP referer and just unset the > container in the session if it was not equal to the script itself. > > Is there a neater way? To clean the session and reinitialize the container, you use $controller->container(true); Now, to guess if the container has to be reinitialized, is up to you. You can use a $_GET variable for example (?new=1 or something like that). Bertrand Mansion Mamasam

« previous php.pear.general (#8318) next »