session.use_trans_sid PHP5

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

session.use_trans_sid PHP5

Post by aceconcepts »

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:

Code: Select all

 
ini_set("session.cookie_path" , "" ); 
ini_set( "session.use_trans_sid" , "1" );
 
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?
Post Reply