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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to