PHP session URL rewriting
| From: | Scott Teresi | Date: | Mon, 06 Oct 2003 01:26:26 +0000 |
| Subject: | PHP session URL rewriting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165115@lists.php.net to get a copy of this message | ||
I'm having trouble getting PHP's built-in session management to rewrite my
<a href=""> tags to include the session ID across pages when cookies are
disabled. Unfortunately, PHP seems to only add the PHPSESSID to a link if
the page ends in ".php", not ".html".
I've preferred to hide my ".php" extensions and simply have Apache execute
all files ending in ".html" (traffic isn't too heavy on this site). How can
I force PHP to pass the session ID to all URLs, even ones that don't end in
".php"?
Thanks for any help or references anyone can provide!
Scott Teresi
--
scott74@digispire.com