Reply to Session ID problem

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация