Sessions and Global Variables

From: Date: Tue, 30 Oct 2001 19:55:00 +0000
Subject: Sessions and Global Variables
Groups: php.windows 
Request: Send a blank email to php-windows+get-10117@lists.php.net to get a copy of this message
Hello, I am running IIS 5.0, PHP 4.0.6, and MySQL 3.23. I have a script that includes the following two lines: $script = getenv ("SCRIPT_NAME"); and, session_start ( ); Apparently, sessions are not working because I am receiving an error back that is indicative of this. I checked track_vars and register_globals. I know that track_vars is automatically enabled for my version of PHP and also that register_globals is "On". I can also substitute "SCRIPT_NAME" with $PHP_SELF and the script works. However, sessions are still not working. I've tested the script using Apache and everything works just fine. I know that these variables are created by the Apache webserver, however, does IIS also create these? If so, how are they enabled? Could someone who's a lot more knowledgeable than myself please provide me with a clue for why sessions on IIS are not working? And more specifically, how to get it working? I'll provide all additional information that you need... free of charge ; - ) Thank you, Scott scott.novinger@airborne.com

« previous php.windows (#10117) next »