Page 1 of 1

sessions problem (passing sessionid)

Posted: Sat Apr 05, 2003 7:46 pm
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?

Posted: Sat Apr 05, 2003 9:37 pm
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.