bergstrom_davin
asked on
Disable Session Auto Start on Windows Server
Is there a way to disable session auto start for a folder on a windows server?
I know you can do it with a .htaccess file on a apache server
php_value session.auto_start 0
Thanks in advance.
I know you can do it with a .htaccess file on a apache server
php_value session.auto_start 0
Thanks in advance.
I'm not sure if it is possible. Can't you just close the session again?
ASKER
Yes I can and have tested the following.
session_write_close ();
// class includes
session_start ();
I don't mind having to do this. I just would like to avoid unserializing twice.
session_write_close ();
// class includes
session_start ();
I don't mind having to do this. I just would like to avoid unserializing twice.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for pondering it _Marcel I'll leave it open for a bit longer.
Edit php.ini. It is usually located in the same folder as php.exe.
Look for session.auto_start.
Look for session.auto_start.
ASKER
I won't be able to change it server wide just have permission for my working folder.