Welcome to WebmasterWorld Guest from 220.127.116.11
My website often links to pages where php adds the session id (sid) to the end of the url when cookies are not avaiable; but not all the time - like when I generate the url from within my php script.
So, when cookies are not available I want to add the sid on the end of my urls. (I don't want to add it on when cookies are available - I want to do it when php would have done it).
Previously I used to have a bit of code that set a session variable, then read it on the next page to detect cookies. This is no good if the session id is retained within the url (with non-cookie browser settings) as it my will think cookies are set.
So, how do I know cookies are really available and not just on a url parameter.
You may ask, why do I want to know.
1. Clean urls when cookies are enabled.
2. I want to track non-cookie browsers in my stats, as the same user may retutn several times with different session ids.