Skip to main content
Known Participant
July 14, 2011
Question

What if cookies r not enabled?

  • July 14, 2011
  • 1 reply
  • 864 views

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

This topic has been closed for replies.

1 reply

Inspiring
July 14, 2011

Application.cfc is a better place to check.  Checking is one thing.  What do you intend to do if cookies are not enabled?

SilvestroAuthor
Known Participant
July 14, 2011

Thanks, well I mean if the browser doesn't accept cookies and so on...

Owainnorth
Inspiring
July 14, 2011

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.