servlet2.4规范中支持3种session,并且单独列了一个,当客户端cookie禁用时,能够自动判断并使用重写url,将session返回客户。参见servlet2.4的7.1.4 SRV.7.1.4 Session Integrity Web containers must be able to support the HTTP session while servicing HTTP requests from clients that do not support the use of cookies. To fulfill this requirement, Web containers commonly support the URL rewriting mechanism.
SRV.7.1.4 Session Integrity
Web containers must be able to support the HTTP session while servicing HTTP
requests from clients that do not support the use of cookies. To fulfill this
requirement, Web containers commonly support the URL rewriting mechanism.
COOKIE是在客户端的,你当然可以让他失效,你在客户端想去禁止SESSION?不得行吧......
一种可以叫做persistent cookie,就是我们通常意义上所说的cookie。通常服务器端的session是借助于seesion cookie来和客户端交互的。
但如果客户端禁用了cookie的话,session还可以借助于url来和客户端交互。
这就是大家为什么有时候会看到url后面会跟着一陀东西。
==== 哈,什么东西?
谢谢了!!