session.use_trans_sid PHP5
Posted: Tue Oct 07, 2008 4:44 am
Hi,
I have a problem with sessions ever since PHP version was updated to PHP5.
I now get a server error: "Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time. in /home/itvrpfco/public_html/lib/.reg_config.php on line 2".
This error is thrown once the following 2 lines are executed:
Also, my sessions do not seem to be registering. Once I log in to my site and all necessary session ids are set, I am immediately logged out again.
This has only happened since PHP5 was installed.
Here is the link to the site: http://www.itvrpf.com
Any ideas how one could resolve this?
I have a problem with sessions ever since PHP version was updated to PHP5.
I now get a server error: "Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time. in /home/itvrpfco/public_html/lib/.reg_config.php on line 2".
This error is thrown once the following 2 lines are executed:
Code: Select all
ini_set("session.cookie_path" , "" );
ini_set( "session.use_trans_sid" , "1" );
This has only happened since PHP5 was installed.
Here is the link to the site: http://www.itvrpf.com
Any ideas how one could resolve this?