RE: [PHP] PHP 4 Sessions

From: Date: Thu, 31 Aug 2000 20:32:28 +0000
Subject: RE: [PHP] PHP 4 Sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14680@lists.php.net to get a copy of this message
> So only relative URLs will be appended? So if I have 3 sites on > my server each part of the same instance of apache, I could not > have php automagically append that session id to urls/links to > pages on the other sites for them to use? Only relative URLs. And there's a lot of sense in that, as you do (usually) not want to pass a session ID along to an external site ;-) But if you really do need to pass the session ID along to an external site, then you could use the session_name() and session_id() functions to construct the absolute URL including session id manually. Like this: echo '<a href="http://www.externalsite.com?'.session_name().'='.session_id().'">'; > > I hope that was helpfull :-) > Yes, very helpful! Thank you very much! No problem. It's nice to be able to help :-) > Chris -- Jesper

« previous php.general (#14680) next »