Welcome Guest, Not a member yet? Register   Sign In
Changing Session cookie - samesite v4.6.1
#11

(This post was last modified: Yesterday, 10:39 AM by codeus.)

(Yesterday, 09:54 AM)paulbalandan Wrote: That's weird. On where you put the hack, can you put these lines so we can debug the values?

dd($this->cookie->getSameSite());
dd(config(\Config\Cookie::class)->samesite);

Make sure to remove first your temporary hack then run your code again. You should see the values for the lines above and paste them here.


Okay, here is the output-:
PHP Code:
$this->cookie->getSameSite()  string (3)  "Lax"
config(...)->samesite  string  (3)  "Lax

called from .../Session/Session,php:296  [dd()]  
Reply
#12

Thank you. This means to say, although you have set the $samesite property in app/Config/Cookie.php as "None", the instantiated Cookie config class gets the Lax value. Check these places for possible places where the Lax value can be set.
  • .env - check if there's a line named "cookie.samesite"
  • check within your code for use of Registrars that have a public method called Cookie
Reply
#13

Indeed, in .env cookie.samesite is set to 'Lax'.

Apologies for my oversight, thanks for your help.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB