Hi,
I seem to run across a lot of posts about session management in searching for them but they don't ask the questions I want to ask, so I'll post it here.
I am using session management for a simple login on a site. I set the session register the variable I want to track (this is my 'login ticket') on every page. The ticket is an encoded string with a unique id that refers to just one individual and is generated when they go through the login process. That's all no problem, the login works.. everyone is happy.
Except me. I am using temporary cookies, that disappear after the browser closes. When the page is first loaded on a 'new' browser (i.e. just opened) the first page arrived at has the session ID automatically added to the end of all the local URLs (I compiled PHP with --enable-trans-sid). If I reload or go to another page, even typing another URL on the site in then the session ID is not visible any more and the cookie is just working silently.
Now, my question .. why does it do that? .. can PHP not just use cookies ALL the time if I want or not (I've used without and I also notice it falls back on URL propagation if cookies don't work). Is it because it doesn't know what will work or not and covers both bases? If it is, that's fine .. I'd just like to know so I can stop wondering why it happens.
Sorry for the ramble.. :>
Derek