Hi Gurus!
I've searched the net for trans_sid, cookies, sessions, etc... But all I get are tutorials about sessions and cookies and turning off trans_sid. Not what I'm looking for. Tough Googling!
What I want is for my PHP code to know if the browser has cookies turned off ON THE FIRST PAGE HIT. A reasonable request don't you think?
Now, I've read, the only way to do that is to write out a cookie and check on the next page hit?!?
BUT that doesn't explain how PHP already knows...
You see, if cookies are turned off, then, when PHP outputs its very first page back to the browser, it appends the PHPSESSID onto all hrefs, urls, and even adds in a hidden form field, doesn't it? Pretty clever! Some serious post processing there.
But doesn't that mean that PHP knows that it couldn't write a cookie from the very first?
So, why can't it tell me?
Somebody's got to have figured this out already right?
Thanks mucho!
Sincerely,
James