W
W
WebDev2016-11-04 16:31:14
Laravel
WebDev, 2016-11-04 16:31:14

What will happen to cookies when changing the key?

Cookies in Laravel are encrypted using a key in the .env file.
If the key is changed (artisan key: generate), then the old cookies will remain, but will not be available?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hakkol, 2016-11-04
@hakkol

If you are using the site at this moment and, for example, are logged in, then after updating the key, you will be logged out and an error may appear that the token is lost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question