如何使用JavaScript读取JSESSIONID? [英] how can i read JSESSIONID with javascript?

查看:669
本文介绍了如何使用JavaScript读取JSESSIONID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了很多方法来使用JavaScript从Cookie中读取该变量,但不能这样做。
与Java的应用程序服务器相关的任何特殊事情都可以远程设置cookie?

i tried lots of method to read that variable from cookie with javascript but cant do. Is there any special thing related with application server of Java that set cookie remotely?

推荐答案

尝试 Fiddler2 。可以使用 HttpOnly 标志发送JSESSIONID。如果是这样,那么标准浏览器将不允许您读取该值。

Try a Fiddler2. The JSESSIONID may be transmitted with the HttpOnly flag. If so, a standardbrowser will not let you read that value.

这篇关于如何使用JavaScript读取JSESSIONID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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