Jump to content


Photo

how to remove ?PHPSESSID=something from the links


  • Please log in to reply
4 replies to this topic

#1 Horst Azeglio

Horst Azeglio
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 02 August 2006 - 06:31 PM

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.

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 02 August 2006 - 06:51 PM

These line *may* help

ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);


Or add the 1st value in php.ini


Regards
Liam
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 Horst Azeglio

Horst Azeglio
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 02 August 2006 - 07:10 PM

Thanks but ini_set() didn't work + I have no access to PHP.INI

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 02 August 2006 - 07:16 PM

Try creating anew .htaccess file in the root of your site. and add the following init:
php_flag session.use_only_cookies 1
php_flag session.use_trans_sid 0


#5 Horst Azeglio

Horst Azeglio
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 02 August 2006 - 07:27 PM

I'll try that.
For now I temporarly fixed the problem by adding the full path to the links.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users