Re: [PHP4BETA] Transparent Session handling again.

From: Date: Tue, 11 Jan 2000 23:35:48 +0000
Subject: Re: [PHP4BETA] Transparent Session handling again.
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9056@lists.php.net to get a copy of this message
Personally, I don't like to have "?" in the URL if I don't have to. Some robots have hangups about that. Also, that seems to take away some of the transparency. Anyway, if somebody could point me in the write direction, I could make the necessary modifications. Thanks, Peter On Tue, 11 Jan 2000, Sascha Schumann wrote: > 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 > -------------------------------------------------- Peter D. Kovacs KnowPost.com LLC Pb Engineer peter@knowpost.com --------------------------------------------------

« previous php.version4 (#9056) next »