473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3227
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Greg Bryant | last post by:
I'm trying to extend an existing site written in CF. We're going to move it to PHP at some point in the near future, but in the meantime, I'd like to add some minor new features, and can steal...
11
by: Vic Spainhower | last post by:
Hello, I just purchased a new domain name and I've set it up as a redirect to a folder on my main site. What is happening is the index.php page checks a session variable to see if the user is...
8
by: Anthony P. Mancini | last post by:
I'm working on a proof of concept that will ultimately be deployed on a load balancer. For the sake of a preliminary demonstration I created a C# object and marked it's attributes as Public...
2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
5
by: Joe | last post by:
I have an application which runs in a non-secure environment. I also have an application that runs in a secure environment (both on the same machine). Is there any way to share the session data for...
2
by: LeAnne | last post by:
My question is to do with scalability and the location for storate of cache, session, viewstate and application data. Application - Data is stored in memory (in process) Session - Data is stored...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
3
by: at_the_gonq | last post by:
Hello, I am hoping to get some guidance on the following scenerio: I have a password protected site where users have various permissions. Are sessions the best way of storing the user's id? ...
4
by: j.wendelmuth | last post by:
Hi, i have a problem with PHP sessions. The problem only occurs on one machine (PHP v5.2.4 incl. mod_security). On another one (PHP v5.2.0 no mod security) my application works fine. Here's...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.