how to get jsessionid shown in browser console in worklight

为君一笑 提交于 2019-12-11 10:26:56

问题


How to get jsessionid shown in browser console in worklight. I have tried document.cookie, but it was invain. I am able to get only WL_PERSISTENT_COOKIE value here.

var sessionId = document.cookie;

Edit:

Pls see http://i.stack.imgur.com/VMm5p.png

On giving document.cookie, I am getting the value of WL_PERSISTENT_COOKIE. But I need the value of JSESSIONID.


回答1:


JSESSIONID in Worklight is flagged as HttpOnly.

This is a security feature that prevents JavaScript access of a cookie, therefore reducing risks of XSS attacks.

They may be workarounds I don't know about.

Read more: https://www.owasp.org/index.php/HttpOnly



来源:https://stackoverflow.com/questions/27010359/how-to-get-jsessionid-shown-in-browser-console-in-worklight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!