Re: [PHP4BETA] Transparent Session handling again.

From: Date: Tue, 11 Jan 2000 21:33:52 +0000
Subject: Re: [PHP4BETA] Transparent Session handling again.
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9050@lists.php.net to get a copy of this message
On Tue, Jan 11, 2000 at 05:39:19PM -0500, php4-peter@knowpost.com wrote: > I found another hangup in transparent session handling: > > It doesn't scan Header redirection (a la > Header("Location: /some/web/page.html")) to add the session identifier. > Is there any particular reason for this? The only workaround that I can > come up with is: > > if ($HTTP_COOKIE_VARS[ session_name() ] == "") { > Header("Location: $HTTP_REFERER?". session_name() ."=". session_id()); > } else { > Header("Location: $HTTP_REFERER"); > } > > Which seems kind of tedious if you use redirection a lot. > > Comments/ideas? header("Location: <url>?".SID); -- Regards, Sascha Schumann Consultant

« previous php.version4 (#9050) next »