Reset session of a specific user

8 months ago

RWNET
Member | 3
+
0
-

Hello! I decided to create a first draft on Nette Framework and faced with the following question. How to finish the session of a certain user in admin's dashboard? I know that logout() method terminates the current user session, which is contained in the Identity. Thanks in advance.

7 months ago

dkorpar
Member | 43
+
0
-

you would have to know session id of every user and store it somewhere (bye default it's saved only in cookie, so you can't access it from server unless request is from logged in user you wish to reset session)
and then you would be able just to delete that key from session storage directly, it's a hacky approach.
You shouldn't be using something like that IMHO. Why do you need that?