如何在客户端获取Tomcat

如何在客户端获取Tomcat

本文介绍了如何在客户端获取Tomcat JSESSIONID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在客户端获取Tomcat的JSESSIONID.那可能吗?如果是,怎么办?

I want to get the JSESSIONID of Tomcat on the client side. Is that possible? If yes, how?

谢谢

推荐答案

这取决于JSESSIONID的传输方式:

It depend on how is the JSESSIONID transmitted:

  • if it's as a session cookie, see how to obtain cookies with javascript
  • if it is in the URL, you can parse the document.location

但是我认为这样做的理由不多.

However I don't see much of a reason to do so.

这篇关于如何在客户端获取Tomcat JSESSIONID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:10