|
Posted by Bob Bedford on 05/21/07 08:30
Hi,
I've this code in my form:
<?php
ini_set('use_trans_sid',1);
session_cache_limiter('private, must-revalidate');
if(!session_is_registered("UID")){
session_start();
$UserID = 0;
if (isset($_SESSION["UID"]) and $_SESSION["UID"] != "")
$UserID = $_SESSION["UID"];}
}
if(!($UserID > 0)){
echo 'error passing UserID';
exit;
}
?>
<form name="FormSubmit" method="GET" action="<?php echo
$HTTP_SERVER_VARS['PHP_SELF'].'?'.SID;">
In this form I've a select with a javascript function as depending on the
first value, I've to load a second select
<select NAME="select1" ID="select1" onChange="FormSubmit.submit();">
Now, when I set the confidentiality to "high" or "bloc all cookies" in IE6,
as soon as the form is "submitted" by the value change (onChange), the
UserID is empty and I've the error message on the form.
What's wrong ? the sessionid should be saved on the server and passed by the
?SID, isn'it ?
Please help.
Bob
Navigation:
[Reply to this message]
|