page3 will not work
| From: | Jan Grafström | Date: | Wed, 26 Dec 2001 10:45:20 +0000 |
| Subject: | page3 will not work | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-78766@lists.php.net to get a copy of this message | ||
Hi!
I am trying to get my script working on IE6 with cookies disabled by the
user.
You can turn cookies off under Properties >>Securitysettings.
Page2 is no problem but when going from a form and send sid as a hidden var
doesen´t work.
Is there any way to work around this?
page1.php:
<?php
session_start();
$myvar1 = "test";
session_register("myvar1");
?>
To continue, <A HREF="page2.php?<?=SID?>">click here</A>
------
page2.php:
<?php
session_start();
if (session_is_registered("myvar1") == FALSE) {
Header("Location: nopermission.htm");
}
?>
<html><head></head><body>
<form action="page3.php?" method="get">
<input type="hidden" value="<?=SID?>"
name="SID"><br>//this code doesn´t
work
<input type="text" value="" name="namn"><br>
<input type="submit" value="send">
</form></body></html>
------
page3.php//I can´t get the session recogniced so I always get
"nopermission.htm"
<?php
session_start();
if (session_is_registered("myvar1") == FALSE) {
Header("Location: nopermission.htm");
}
?>
<html><head></head><body>
<p><?echo $namn;?>
</body></html>
Thanks for any help.
Regards,
Jan
--
Jan Grafström
Lillemans Hus AB
Sweden
46 (0)611-60920
46 (0)70-6409073