Link to home
Start Free TrialLog in
Avatar of bergstrom_davin
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.
Avatar of _Marcel_
_Marcel_
Flag of Netherlands image

I'm not sure if it is possible. Can't you just close the session again?
Avatar of bergstrom_davin
bergstrom_davin

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.
ASKER CERTIFIED SOLUTION
Avatar of _Marcel_
_Marcel_
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
I won't be able to change it server wide just have permission for my working folder.