Jump to content

Check if Cookies enabled


SaranacLake

Recommended Posts

35 minutes ago, SaranacLake said:

Is there a way for my PHP to check if a user has disabled cookies in their browser, thus breaking my $_SESSION?

People who disable cookies have a fundamentally broken internet experience. They're used to creating exceptions in their browser to allow sites to work. Remind people your site uses cookies - which you kinda "have" to do already, thanks to GDPR.

 

35 minutes ago, SaranacLake said:

Since I don't know Javascript, that isn't an option.

Well that's the dumbest excuse I've heard all month.

Link to comment
Share on other sites

1 minute ago, requinix said:

People who disable cookies have a fundamentally broken internet experience. They're used to creating exceptions in their browser to allow sites to work. Remind people your site uses cookies - which you kinda "have" to do already, thanks to GDPR.

I did add a message to my "Contact Us" form, but since my error logging relies on the SESSION, all I get is a catch-all message.  Would be nice to have a way to log that the issue is the user's cookies are off.

Not a real worry for v1.0

 

1 minute ago, requinix said:

Well that's the dumbest excuse I've heard all month.

No, it isn't.  I don't plan on learning Javascript before I go live.  And I certainly wouldn't take time to learn it so i can know f the user disabled cookies on my site.

My site will through a general error in any places that rely on SESSIONS, so that is good enough.

 

As far as GDPR, yeah i sorta need to add that into my site before I go live - I guess...

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.