在此之后回退会话的代码为null或超时。 [英] code to retrive the session after that is null or time out.

查看:62
本文介绍了在此之后回退会话的代码为null或超时。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在清除或超时后检索会话值

发给我解决方案.......

谢谢

i want to retrieve the value of session after that is clear or timeout
Sent me solution.......
Thanks

推荐答案

你不能。会话信息在会话到期时被丢弃 - 并且不可检索。



如果要保存会话到会话的信息,则需要使用更永久的形式存储:可能是针对用户登录的数据库,或者是Cookie。
You can't. Session information is discarded when the Session expires - and is not retrievable.

If you want to preserve information form session to session, you need to use a more permanent form of storage: a DB against a user login perhaps, or Cookies.


这篇关于在此之后回退会话的代码为null或超时。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆