Re: session id changing all the time on some pc's
| From: | Matthew Sims | Date: | Fri, 02 Jul 2004 19:00:35 +0000 |
| Subject: | Re: session id changing all the time on some pc's | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189564@lists.php.net to get a copy of this message | ||
>> Instead of passing the session_id through the URL ($_GET) just assign it
>> to $_SESSION and pass that around. Then it'll stay transparent to the
>> user.
>
> Could you describe the last paragraph a bit more in detail? Thanks in
> advance!
>
> Torsten
What if you used this?
session_start();
$_SESSION['sid']=session_id($HTTP_GET_VARS['sid']);
Now as long as each of your pages has session_start() at the top, you can
use $_SESSION['sid'] whereever.
To the mailing list: Am I doing this correctly?
--Matthew Sims
--<http://killermookie.org>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>