Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

我是把登录信息记录在redis中的,就是一个简单的string类型,但我发现一旦登出之后,这个string长度就缩小了。。。。(里头还记录着csrf的token)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
481 views
Welcome To Ask or Share your Answers For Others

1 Answer

谢邀!

你的登陆保存在redis中的string类型变量,是包含哪些具体信息,并且看看哪些地方会改变其值内容。

如果说你想值保持不变的话为什么不用常量呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...