Forum Moderators: coopster
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
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