470,855 Members | 1,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

php iis & session storage

I need to do some testing for an IIS server (not my choice!)...

So I installed IIS on my WinXP Pro machine (all updates applied), got
php 5.1.1 installer (& zip for all the pear stuff), and got everything
running. (I used the installer, so PHP is running in CGI mode.)

I ran a bunch of different scripts without problems, but now I need to
test pages that use sessions. The following is the error I get:

Fatal error: session_start() [function.session-start]: Failed to
initialize storage module: user (path: C:\PHP\sessiondata) in
c:\Inetpub\wwwroot\file.php on line N

(line is "session_start();")

These files all worked under my apache installs, and I am assuming that
the problem lies with the permissions of the directory somehow. Does
anyone have experience with this kind of setup?

I am using an NTFS filesystem, and I thought that I could simply allow
the user running the web server to have write access, but that didn't
work. I even went in and set "Everyone" with full access to the c:\php
folder (after attempting the same on the sessiondata one) to no avail.

TIA!

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Dec 21 '05 #1
3 3110
On Wed, 21 Dec 2005 11:19:44 -0600, Justin Koivisto <ju****@koivi.com> wrote:
I need to do some testing for an IIS server (not my choice!)...

So I installed IIS on my WinXP Pro machine (all updates applied), got
php 5.1.1 installer (& zip for all the pear stuff), and got everything
running. (I used the installer, so PHP is running in CGI mode.)

I ran a bunch of different scripts without problems, but now I need to
test pages that use sessions. The following is the error I get:

Fatal error: session_start() [function.session-start]: Failed to
initialize storage module: user (path: C:\PHP\sessiondata) in
c:\Inetpub\wwwroot\file.php on line N

(line is "session_start();")

These files all worked under my apache installs, and I am assuming that
the problem lies with the permissions of the directory somehow. Does
anyone have experience with this kind of setup?

I am using an NTFS filesystem, and I thought that I could simply allow
the user running the web server to have write access, but that didn't
work. I even went in and set "Everyone" with full access to the c:\php
folder (after attempting the same on the sessiondata one) to no avail.


Perhaps http://bugs.php.net/bug.php?id=32330

In particular the error seems to indicate you have a custom session save
handler registered, since it's saying "storage module: user" instead of the
default file handler?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Dec 21 '05 #2
Andy Hassall wrote:

Perhaps http://bugs.php.net/bug.php?id=32330

In particular the error seems to indicate you have a custom session save
handler registered, since it's saying "storage module: user" instead of the
default file handler?


I bet it is... Thanks!

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Dec 21 '05 #3
Andy Hassall wrote:
Perhaps http://bugs.php.net/bug.php?id=32330

In particular the error seems to indicate you have a custom session save
handler registered, since it's saying "storage module: user" instead of the
default file handler?


I guess it wasn't, but it did get me looking in the right place... Turns
out that the database object (MDB) that was used for the session storage
stuff had a malformed connection string.

Thanks for the help!

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Dec 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Greg Bryant | last post: by
11 posts views Thread by Vic Spainhower | last post: by
8 posts views Thread by Anthony P. Mancini | last post: by
2 posts views Thread by John A Grandy | last post: by
2 posts views Thread by LeAnne | last post: by
3 posts views Thread by at_the_gonq | last post: by
4 posts views Thread by j.wendelmuth | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.