Horst Azeglio Posted August 2, 2006 Share Posted August 2, 2006 When my cookies are empty, ?PHPSESSID=something is automatically added to some of the links of my site.How can I remove ?PHPSESSID=something from the links? I know what a session is, but I don't know why it does that.Thank you. Link to comment https://forums.phpfreaks.com/topic/16356-how-to-remove-phpsessidsomething-from-the-links/ Share on other sites More sharing options...
shocker-z Posted August 2, 2006 Share Posted August 2, 2006 These line *may* helpini_set('session.use_only_cookies', 1);ini_set('session.use_trans_sid', 0);Or add the 1st value in php.iniRegardsLiam Link to comment https://forums.phpfreaks.com/topic/16356-how-to-remove-phpsessidsomething-from-the-links/#findComment-68032 Share on other sites More sharing options...
Horst Azeglio Posted August 2, 2006 Author Share Posted August 2, 2006 Thanks but ini_set() didn't work + I have no access to PHP.INI Link to comment https://forums.phpfreaks.com/topic/16356-how-to-remove-phpsessidsomething-from-the-links/#findComment-68045 Share on other sites More sharing options...
wildteen88 Posted August 2, 2006 Share Posted August 2, 2006 Try creating anew .htaccess file in the root of your site. and add the following init:[code]php_flag session.use_only_cookies 1php_flag session.use_trans_sid 0[/code] Link to comment https://forums.phpfreaks.com/topic/16356-how-to-remove-phpsessidsomething-from-the-links/#findComment-68047 Share on other sites More sharing options...
Horst Azeglio Posted August 2, 2006 Author Share Posted August 2, 2006 I'll try that.For now I temporarly fixed the problem by adding the full path to the links. Link to comment https://forums.phpfreaks.com/topic/16356-how-to-remove-phpsessidsomething-from-the-links/#findComment-68059 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.