Home > Archive > PHP DB > January 2005 > RE: [PHP-DB] IIS, PHP, and session data
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
RE: [PHP-DB] IIS, PHP, and session data
|
|
| Matthew Perry 2005-01-26, 3:56 pm |
| It turns out that the real problem was problem 1) I am not personally =
in
control of our web server.
I forwarded some of the posted messages to our IT department and they
decided to change what they were telling me. They actually had =
register
globals turned off not on. I changed my code to use the session array =
and
it works beautifully now.
Thank you all for your advice!
- Matthew
-----Original Message-----
From: Simon Rees [mailto:tech-lists@zodiac2000.co.uk]=20
Sent: Tuesday, January 25, 2005 4:25 PM
To: php-db@lists.php.net
Cc: Perry, Matthew (Fire Marshal's Office)
Subject: Re: [PHP-DB] IIS, PHP, and session data
On Tuesday 25 January 2005 20:20, Perry, Matthew (Fire Marshal's =
Office)=20
wrote:
> I am having trouble with my session data on Microsoft IIS.
>
> Here is a little background of the problem:
>
> 1) I am not personally in control of our web server. Our IT
> department manages it. =20
oh dear! ;-)=20
> They have IIS running on their sever and use MS=20
> SQL Server, but they have allowed me to use PHP instead of ASP.
>
> 2) I have apache running on a local web server in our office =
(not
> the IT department). It accesses the SQL Server database remotely. I
I can't comment on the use of register_globals or session_register as I =
always use the $_SESSION array but I do use PHP on IIS...
Something that you might like to check is that the directory specified =
by:
session.save_path
in the IIS server's php.ini is a directory writable by the user that =
IIS=20
masquerades. The default value for this is:
c:\php\sessiondata
which if your sy min installed php as Administrator will not be =
writable=20
by the IIS user (normally IUSR_<hostname> ).
Either get the sy min to specify (& create) another dir that is =
writable=20
by IIS or change the permissions on c:\php\sessiondata
Assuming you're running apache on a Linux (and probably other un*x)=20
distribution you will find that the session.save_path variable is set=20
to /tmp which is usually world writable.
I think if you posted the exact error message it would tell me if this =
was=20
happening to you or not...
hth, Simon
--=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
Simon Rees =A0| =A0tech-lists@zodiac2000.co.uk =A0|
ORA-03113: end-of-file on communication channel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
|
|
|
|
|