|
Posted by Michael Fesser on 05/05/07 08:18
..oO(K. A.)
>==>>> The resulting page http://vector/test/testvariables.php looks
>like:
>session started
>UserName: ( )
>Password: ( )
>
>Session variables have not been passed across!
>PS. I'm using PHP version 4.3.10, with Apache 1.3.12 (I think!)
>
>In the error log, it says:
>Undefined index: userid in testvariables.php on line 5
>Undefined index: password in testvariables.php on line 6
>
>I'm quite new to PHP, please help!
How's the session ID stored on the client, in a cookie or appended to
the URLs? If it's not stored in a cookie, it will get lost in step 2
when the script redirects.
You could try this:
if (...) {
header('Location: http://example.com/test/testvariables.php?'.SID);
exit;
} else {
...
}
Micha
Navigation:
[Reply to this message]
|