Posted by Robin on 06/13/07 14:23
damezumari wrote:
> I have just discovered that the problem can be simplified a bit;
> test3.php is not needed.
>
> $_SESSION['classtitle'] = 'b';
> echo 'main: '.$_SESSION['classtitle'].'<br />';
> unset($_SESSION['classtitle']);
> echo '<p><a href="test.php">test</a></p>';
>
> This displays:
>
> main: b
>
> But when I click the link to test.php I get:
>
> test: a
>
> Conclusion: $_SESSION['classtitle'] in test.php is not the same as in
> the main program. How come?
>
> Regards,
>
> Jan Nordgreen
>
>
Are you calling session_start() at the top of the page that links to
test.php?
Robin
[Back to original message]
|