RE: [PHP-WIN] Sessions and Global Variables
| From: | Svensson, B.A.T. | Date: | Tue, 30 Oct 2001 20:05:40 +0000 |
| Subject: | RE: [PHP-WIN] Sessions and Global Variables | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10118@lists.php.net to get a copy of this message | ||
Maybe because that bloody *(%$&*()^@$#^ IIS need to be restarted before
changes will take affect - at least that holds true for ASP when fiddling
with the global.asp file. (Some one ought to be shoot...)
Cheers
>-----Original Message-----
>From: SCOTT.NOVINGER@airborne.com [mailto:SCOTT.NOVINGER@airborne.com]
>Sent: Tuesday, October 30, 2001 8:55 PM
>To: php-windows@lists.php.net
>Subject: [PHP-WIN] Sessions and Global Variables
>
>
>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