L
L
Lev K2017-07-07 12:34:17
Yii
Lev K, 2017-07-07 12:34:17

How to track a user in yii2?

Hello.
Ran into a small issue about sessions.
I want to track the actions of one user without authorization. I open session, I look id.
Question:
Do I need to close the session after writing data to the log? You need to constantly have the same session id for one client to write to the database. How long will the client be assigned this id ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2017-07-07
@Leffken

Do I need to close the session after writing data to the log?

Not necessary
Before closing the browser window

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question