sessions icon indicating copy to clipboard operation
sessions copied to clipboard

How to change the value of redis

Open JianleiZhang opened this issue 7 years ago • 2 comments

The user's role is saved in the session, the session is stored in redis. I want to change the role of the user in role management. How can i do it?

JianleiZhang avatar Apr 19 '17 02:04 JianleiZhang

session.set -> session.save or what do you mean?

appleboy avatar Apr 19 '17 02:04 appleboy

I wrote a user-managed module that can modify the role of the specified user. The modified result is stored in the database, and the user needs to log in again to update the session. I want to update the session directly.

JianleiZhang avatar Apr 19 '17 03:04 JianleiZhang