• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ci_session cookie rejection warning

#1
Hi!
I have noticed Firefox giving the following warning in the console:

Cookie “ci_session” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Cookies

Anything I can fix as a user?
Reply

#2
Same with me
Hi! I am Jamil
Reply

#3
I am also getting warning in firefox console that

"Cookie “ci_session” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Cookies".

My javascript has been stopped working now from when I am getting this notice.
Reply

#4
In the file app/Config/App.php you will need to use

PHP Code:
public $cookieSecure  true

And you will also need to implement SSL certificates and use https
Reply

#5
Thanks a lot that was indeed the solution!
Reply

#6
(06-01-2020, 07:38 AM)dave friend Wrote: In the file app/Config/App.php you will need to use

PHP Code:
public $cookieSecure  true

And you will also need to implement SSL certificates and use https
Dear,
I didn't find App.php in Config folder...Can you please tell me the reason ?
Thanks
Reply

#7
Also make sure that this has not been changed in Config/app.php

PHP Code:
public $cookieSameSite 'Lax'
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.