K
K
knowledge2018-01-19 17:28:26
PHP
knowledge, 2018-01-19 17:28:26

What to do with an existing session during authorization?

An anonymous user visits the site, a session starts, let's say the session lifetime is set to a week in the settings.
The user logs in, what to do with the session next?
We use the same session and fill with data?
How then to adjust session lifetime? let's say tomorrow it ends, and the user just logged in,
or do we kill the session and start it over again? Or just start over?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasiliy_M, 2018-01-19
@Vasiliy_M

An anonymous user visits the site, a session starts
it should not be

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question