禁用cookies前后,jsessionid 与 request.getRequestedSessionId()区别
时间:2015-04-29 19:27:21
收藏:0
阅读:545
1.未禁用cookies :
request.getRequestedSessionId()方法获取的值是Cookie中的值,即使URL中有jsessionid的值。
2.禁用cookies:
request.getRequestedSessionId()方法获取的是值就是URL中的jessionid的值,如果没有,则为NULL
原文:http://www.cnblogs.com/demon-kingdom/p/4466709.html
评论(0)