java - 用HttpSession的setMaxInterval(-1)设置会话永不超时意味着什么?应用场景有哪些?
阿神
阿神 2017-04-18 09:56:53
0
0
496

【问题背景】在servletAPI中,对HttpSession的方法seMaxInterval有这样一句说明:A zero or negative time indicates that the session should never timeout.
【分析与问题】我们知道cookie是保存在客户端的,默认和会话寿命一样,但可以设置会话结束后还存活,即存入客户本地储存。而session是在服务端的,session永不到期意味着什么?存入服务端储存?还是以对象一直驻留,直到应用程序关闭?设置会话永不过期的应用场景有哪些?

阿神
阿神

闭关修行中......

Antworte allen(0)
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!