RE: [PHP4BETA] Session Management in PHP4
| From: | Jon E. Mitchiner | Date: | Thu, 21 Oct 1999 20:06:05 +0000 |
| Subject: | RE: [PHP4BETA] Session Management in PHP4 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5631@lists.php.net to get a copy of this message | ||
> > Are there any other ways to print out the <?=SID?> variable
> into the url?
> > For instance, I have lines like:
> > <? print "<A
> > HREF=http://www.test.com?"?><?=SID?>> test site
> > </A>
> > Is there a better way of doing it, like <? print "<A
> > HREF=http://www.test.com?";=SID?> (That doesnt
> > work). Also it
> does not work
> > doing something like $test = "blahblahblah=SIDblah"; (I think I missed
> > another way of setting them, but wanted to doublecheck.)
>
> If you compile with --enable-trans-sid, relative URLs will be
> changed automatically (no need for <?=SID?>).
I assume this is for cookie mode only, as it does not appear to work for
URLs on the page (as I just compiled in --enable-trans-sid) and that didnt
seem to work when I had disabled cookies in my browser.
When running phpinfo(); I notice the set-cookie variable is there (probably
because im starting the session on every page) but when theres a url, the
SID doesnt pop up.
The code it didnt work on is:
<AREA SHAPE="RECT" COORDS="0, 149, 124, 189" HREF="<?print
"$mainwww/main.php";?>">
Do I need the latest version of php4 (cvs version?) in order
for --enable-trans-sid to work?
Thanks!
Jon