Re: Would appreciate thoughts on session management

From: Date: Tue, 12 Nov 2002 23:55:52 +0000
Subject: Re: Would appreciate thoughts on session management
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124101@lists.php.net to get a copy of this message
Justin French wrote... > Well, you seem so sure it will work, so give it a go... I can't see how, but > am totally willing to learn! > > Have you got any info on invisible gets? It's simple, which is one thing I like about it. My submit.php looks like this: <?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(); ?> Then to send a new value for a variable, I just have link that looks like <http://www.domain.com/submit.php?variable=3>. -- Charles Wiltgen

« previous php.general (#124101) next »