Forum Moderators: coopster

Message Too Old, No Replies

Follow up to sessions question.

IE not indicating cookie problem, but still getting session id's

         

HughMungus

8:14 pm on Nov 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have this at the top of my document:

ini_set('session.use_only_cookies', 1);
session_start();

I'm assuming that I would stop getting session ID's on my URLs but I'm still getting them even though my IE settings are "Prompt for first party cookies", "Prompt for third party cookies", and "Always allow session cookies". What am I doing wrong? Do I have to create a cookie first?

coopster

2:10 pm on Nov 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You need to do that at the beginning of every page, not just the first page. It wouldn't hurt to turn the session.use_trans_sid [php.net] off as well.