sessions problem (passing sessionid)

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
Little Spy
Forum Commoner
Posts: 31
Joined: Thu Oct 10, 2002 8:18 pm
Contact:

sessions problem (passing sessionid)

Post by Little Spy »

I would like session id to be passed to the next page always by the url rather than a cookie. I know that is a feature in the php config to do it automatically. Is their a way to do it automatically even if its not set in the php config? Or a way to turn it on only for my script?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

ini_set('session.use_cookies', FALSE);
ini_set('session.use_trans_sid', TRUE);
this has to take place before any session-related function.
Post Reply