Re: IIS, PHP, and session data

From: Date: Tue, 25 Jan 2005 22:25:16 +0000
Subject: Re: IIS, PHP, and session data
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-38346@lists.php.net to get a copy of this message
On Tuesday 25 January 2005 20:20, Perry, Matthew (Fire Marshal's Office) 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. oh dear! ;-) > They have IIS running on their sever and use MS > 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 masquerades. The default value for this is: c:\php\sessiondata which if your sysadmin installed php as Administrator will not be writable by the IIS user (normally IUSR_<hostname>). Either get the sysadmin to specify (& create) another dir that is writable by IIS or change the permissions on c:\php\sessiondata Assuming you're running Apache on a Linux (and probably other un*x) distribution you will find that the session.save_path variable is set to /tmp which is usually world writable. I think if you posted the exact error message it would tell me if this was happening to you or not... hth, Simon -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Simon Rees  |  tech-lists@zodiac2000.co.uk  | ORA-03113: end-of-file on communication channel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

« previous php.db (#38346) next »