Answer the question
In order to leave comments, you need to log in
Get user_id from cookie?
When a user logs in, the session with his data: id, name, states, is written in cookies in the following form:
[6c85ab700016235bf55b3c6eb945a6e3] => a54d3314c3fe7c14c09a1bc001a6830bc72fe488a:4:{i:0;s:1:"8";i:1;s:13:"testuser";i:2;i:31556926;i:3;a:0:{}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question