Support the ongoing development of Laravel.io →
posted 9 years ago
Requests
Last updated 1 year ago.
0

While it should default to a sane value, make sure the cookie path and domain is set "correctly". Usually you'd want it to be "/" (root of domain) and your domain name without www, so it's readable with and without www.

Last updated 1 year ago.
0

I don't think you can read the encrypted cookies with Javascript. It would mean you would have the key on the client side and have the same decryption algorithm, but that wouldn't be safe as your key would be visible for anyone.

Last updated 1 year ago.
0

Hi guys and thanks for answers,

Actually, purpose of this is not to read content of the cookie, but to read expire date of the cookie (it contains an oauth token). Encryption is also set on this expires value ?

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

arnaud-bms arnaud-bms Joined 13 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.