Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

What if cookies r not enabled?

New Here ,
Jul 14, 2011 Jul 14, 2011

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

TOPICS
Getting started
828
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 14, 2011 Jul 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 14, 2011 Jul 14, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 14, 2011 Jul 14, 2011
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources