For Programmers: Free Programming Magazines  


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
Simon Rees

2005-01-25, 8:56 pm

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=20
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 symin installed php as Administrator will not be writable=
=20
by the IIS user (normally IUSR_<hostname> ).

Either get the symin 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

=2D-=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
Simon Rees =C2=A0| =C2=A0tech-lists@zodiac2000.co.uk =C2=A0|
ORA-03113: end-of-file on communication channel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com