ID: 20630 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: IIS related Operating System: Win2k Server PHP Version: 4.2.3 New Comment:
Hi again, I am confused on what your suggesting I appreciate your patience. You mentioned to use $_SESSION autoglobal but in what syntex? I am using session_register("username"); do I change it to $_SESSION autoglobal("username");? Thanks Dustin Previous Comments: ------------------------------------------------------------------------ [2002-12-07 01:25:44] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Please use $_SESSION autoglobal to add data to the session rather then register_session() and try this on the latest win32 snapshot. ------------------------------------------------------------------------ [2002-11-29 02:01:34] [EMAIL PROTECTED] Hey iliaa, I am using the bleow code, I do believe it would be a user session. function dbconnect() { include("config.php"); mysql_connect($dbhost, $dbusername, $dbpassword); mysql_select_db("$dbname") or die ("Unable to select database"); } dbconnect(); if(!isset($op)) $op = "login"; switch ($op) { case "logout": $username = 0; session_start(); session_unregister("username"); header("Location:login.php?op=logout"); break; case "login": $results = mysql_query("select * from auth where username='$username' and password=password('$password')"); if (mysql_num_rows($results)>0) { session_start(); session_register("username"); header("Location:functions.php?op=chpass"); } else header("Location:login.php?op=BadLogin"); break; } Any help you can suggest would be great. Like I said it works fine first time around with apache but not with IIS you have to log out and then log back in to get it to work. I tell you what I will create a user for you so you can see. You can log in at the address below: http://216.150.211.253/phpfiles/login.php username guest password guest1 Thanks Aelaron ------------------------------------------------------------------------ [2002-11-28 22:14:10] [EMAIL PROTECTED] What sort of a session mechanism are you using, URLs, Cookies or both and what kind of session managment are you using, user, php or something else? ------------------------------------------------------------------------ [2002-11-25 14:11:03] [EMAIL PROTECTED] When I log in with IIS it does not create my session I have to log out and then log back in to have my session start. I installed Apache on Win2k server and it works fine first time around. Any ideas on why this is? All my updates and service paks are up to date on IIS, Internet Explorer, and Win2k thanks, Dustin ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20630&edit=1