Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用活动记录存储。我知道通常会话变量是字符串,但我想知道在会话中存储布尔值或非字符串对象的做法是什么?它有效吗?它适用于饼干店吗?是不是被人嫌弃了?
谢谢。
有用。
它只是一个被序列化的普通哈希。你可以尝试一下。
注意 cookie 的最大大小(我认为大约是 4kbytes)。