Copy link to clipboard
Copied
Hello,
long time ago I did some php coding, and I remember there was the issue of cookies not enabled on some machines.
I had to raw put the session value after every link (I suppose a bad practice).
Now I wonder what happens to Cf sessions if cookies are not enabled on the user agent?
Should I check the case on each page (or in application.cfc)?
Thanks
Copy link to clipboard
Copied
Application.cfc is a better place to check. Checking is one thing. What do you intend to do if cookies are not enabled?
Copy link to clipboard
Copied
Thanks, well I mean if the browser doesn't accept cookies and so on...
Copy link to clipboard
Copied
Regardless of the languages and technologies, if a browser won't accept cookies you have to store them in the URLs as you say; there's simply no other way of doing it. CFID and CFTOKEN would both need to be in there.
These days though I tend to go along the lines of "if you've disabled cookies, then screw you. This site won't work". It's not 1998 any more, and if people want to make things difficult by running IE5 with cookies and javascript disabled they just need to accept they'll have a pretty poor web experience.
But yes, URL is the only way if you do want to do it.