portalplanet
08-31-2004, 02:01 PM
Hi all. I'm new to php and was wondering how to make it so that phpsessid= does not get added to then ends of URLs? Is it possible? Is it getting added there because of the apache configuration?
Thanks,
Justin
BluParadox
08-31-2004, 04:11 PM
When you are using sessions this is one of two ways session ids may be passed (the second being cookies). It is possible to force php to only use cookies to maintain session state, but that will result in your site working incorrectly for users without cookies enabled.
The setting for this is session.use_only_cookies (http://www.php.net/manual/en/ref.session.php#ini.session.use-only-cookies)
You can set it either in php.ini, .htaccess, or with the ini_set() (http://www.php.net/ini_set) function.
Burhan
09-01-2004, 02:06 AM
You can also use mod_rewrite to adjust your url.
mixDev
09-01-2004, 09:54 AM
put
ini_set('session.use_trans_sid', false);
at the top of the files.
or set it in php.ini