Hello,
Some of my links are showing the dreaded ?PHPSESSID=xxxxxxxxxxxxxxxxx. How do I prevent this from showing up, including for when the search engines spider the site?
Many thanks
Mark
Getting rid of PHPSESSID
Moderator: General Moderators
Put this at top of your script(s):
Though I can't remember off top of my head if they should be int's or strings, so might be:
Code: Select all
ini_set('session.use_cookies', '1');
ini_set('session.use_only_cookies', '1');Code: Select all
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact: