Re: Would appreciate thoughts on session management

From: Date: Wed, 13 Nov 2002 18:31:47 +0000
Subject: Re: Would appreciate thoughts on session management
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124277@lists.php.net to get a copy of this message
Michael Sims wrote... >> My Invisible GET method avoids all of this. > > If you get an example of this up and running somewhere why don't you post a > link... Unfortunately the site I'm working on isn't public, but you can try it yourself. Just create a submit.php and put this in it: <?php session_start(); header('Location: ' . $_REQUEST['target']); reset ($_REQUEST); while (list ($key, $value) = each ($_REQUEST)) { switch ($key) { case "target": break; case "PHPSESSID": break; default: $_SESSION[$key] = $value; break; } } echo " "; // NN4 requires that we output something... exit(); ?> And then call it with this: <http://www.yourdomain.com/submit.php? target=index.php&variable=3> -- Charles Wiltgen

« previous php.general (#124277) next »