Page 1 of 1

Getting rid of the PHPSESSID in the URL??

Posted: Wed May 07, 2003 6:40 pm
by tsg
Hello,

Anyway I can get rid of the PHPSESSID in the URL? It only occurs on the second or first page, then is gone.

Doing some research, I tried adding ini_set("session.use_trans_sid", 0);
at the top of the page before session_start (); , but still get it in the URL.

Thanks in advance ..

Tim

Posted: Thu May 08, 2003 2:57 am
by volka
strange but maybe session.use_only_cookies will help you

ini_set("session.use_trans_sid", 0) is before session_start(), you did not miss one?
Without access to the global php.ini this might be set in .htaccess for the whole directory (see also: http://www.php.net/manual/en/configuration.changes.php#configuration.changes.apache)