Re: Sessions on win32, PHP and IIS
| From: | Diego Fulgueira | Date: | Wed, 19 Mar 2003 17:34:13 +0000 |
| Subject: | Re: Sessions on win32, PHP and IIS | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-140315@lists.php.net to get a copy of this message | ||
For session variables to work:
Use the $_SESSION array instead of $HTTP_SESSION_VARS.
Also, check your session_path (defined in php.ini, which should be under
/WINNT). session_path should point to a directory where user IUSR_MYHOST has
writing permissions. There, you should see a file created for each session.
Open this file in notepad and you should find names of session variables and
their values. If all this is correct, check what session cookies is sending
your browser to the server (Netscape is very suitable for doing this).
PHPSESSID should be one of them, if not, you are not registering your
session correctly.
Cheers.
----- Original Message -----
From: "Beauford.2002" <beauford.2002@rogers.com>
To: "PHP General" <php-general@lists.php.net>
Sent: Wednesday, March 19, 2003 10:38 AM
Subject: [PHP] PHP and IIS - More info
> These are some of the errors I am getting
>
> Notice: Undefined index: login in
> C:\Inetpub\wwwroot\xxxx.xxxx.xxxx\login\checklogin.php on line 74
>
> and 75, and other similar errors.
>
> Line 74 is: $login = $HTTP_SESSION_VARS['login'];
> Line 75 is: $password = $HTTP_SESSION_VARS['password'];
>
> Another one is: echo $HTTP_ENV_VARS["QUERY_STRING"];
>
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>