Transparent Session handling again.
| From: | php4-peter at knowpost dot com | Date: | Tue, 11 Jan 2000 22:39:19 +0000 |
| Subject: | Transparent Session handling again. | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9048@lists.php.net to get a copy of this message | ||
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?
Peter
--------------------------------------------------
Peter D. Kovacs KnowPost.com LLC
Pb Engineer peter@knowpost.com
--------------------------------------------------