Posted by David Haynes on 06/19/06 12:24
stathisgotsis@hotmail.com wrote:
> Hello everyone,
> I am having a brain fart or something, why won't this work?
>
> test.php:
>
> <?php
> session_start();
> $_SESSION['username']='test';
session_write_close(); // <-- add this
> header("Location: test2.php");
> exit();
> ?>
>
> and test2.php:
>
> <?php
> session_start();
> echo $_SESSION['username'];
> ?>
>
> Any hint appreciated.
>
Navigation:
[Reply to this message]
|