A problem with sessions ("Session expired")
Posted: Tue Aug 13, 2002 2:54 pm
I work with PHP 4.0.6 for Windows
If I turn session.auto_start on (session.auto_start=1) always, when I click "Back" button on my web-browser, "Session Expired" message appear. Is this normal or not? Furthermore, if I start session with session_start() function, it doesn't works??? That's my code:
file 1.php:
<FORM ACTION="2.php">
............
<?php
session_start();
session_register("x");
if (session_is_registered("x")) ....... - this doesn't work
?>
file 2.php:
..........
<?php
if (session_is_registered("x")) ....... - this doesn't work too
?>
If I turn session.auto_start on (session.auto_start=1) always, when I click "Back" button on my web-browser, "Session Expired" message appear. Is this normal or not? Furthermore, if I start session with session_start() function, it doesn't works??? That's my code:
file 1.php:
<FORM ACTION="2.php">
............
<?php
session_start();
session_register("x");
if (session_is_registered("x")) ....... - this doesn't work
?>
file 2.php:
..........
<?php
if (session_is_registered("x")) ....... - this doesn't work too
?>