Re: Sessions and login
| From: | Mario Oberrauch | Date: | Wed, 11 Jun 2003 13:46:03 +0000 |
| Subject: | Re: Sessions and login | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151064@lists.php.net to get a copy of this message | ||
... [shortened]
> Then I want the session to call authPage (because the pw is correct) together with the session
> variable. The way I am doing this (doesnt seem to be working) is to call authPage with as a header
> call eg:
> header("Location: authPage.php");
>
> The problem I think I am having is that the session variable isnt being passed to the authPAge.
> How else can I call the authPage from verifyPage so that the session variable gets passed. BTW I
> have register_globals = on;
...
Hi
try one of the following:
- header("Location: authPage.php?". session_name() ."=". session_id());
- enabling "session.use_trans_sid" in php.ini
IMO latter is unpreferable.
, mario