Forum Moderators: coopster

Message Too Old, No Replies

Problems with session_start()

         

DFrag

10:07 pm on Jan 15, 2004 (gmt 0)

10+ Year Member



Hello all,

Trying to create a login page to enable website updates. I try to use session_start() and I am getting the following error when the page is run:

Warning: session_start() [function.session-start]: open(C:\PHP\sessiondata\sess_e2d4aa7efd8af2fb2d8166956f24cb66, O_RDWR) failed: Permission denied (13) in d:\"mywebsite" on line 2

What permissions do I need?

Thanks
DFrag

ergophobe

10:27 pm on Jan 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Does the directory "C:\PHP\sessiondata\" exist?

For various reasons, on my Windows test server, in php.ini, I have

session.save_path = g:\sessions

It works fine with Security set to allow Everyone "Full Control" I think this is the Windows equivalent of chmod 777. It seems to work anyway.

I just had a weird thing happen though - pages were timing out that had worked minutes earlier. Turns out the server was getting hung up on

session_start();

I tried to delete the session file (only one since I had just deleted all others) and it wouldn't let me (sharing violation). Stopping Apache didn't help. I had to reboot.

Tom

DFrag

10:42 pm on Jan 15, 2004 (gmt 0)

10+ Year Member



Unfortunately this is a server through an external party so I may have to find out through them.

I checked using phpinfo() and c:\PHP\sessiondata is the value of session.save_path.

I'll try and get a hold of the support guys.

Thanks
DFrag