开发者

Is there a way to create a tomcat session manually?

开发者 https://www.devze.com 2023-01-24 12:30 出处:网络
Is there a way to create a tomcat session manually? I\'m working on a system where a web service will give the authentication credentials and I need to authenticate the request 开发者_如何学运维and s

Is there a way to create a tomcat session manually?

I'm working on a system where a web service will give the authentication credentials and I need to authenticate the request 开发者_如何学运维and send the session id as the response if the credentials are correct.

I'm using Spring as my application framework and spring ws for web service implementation.


HttpServletRequest.getSession(boolean create)

By default, if you use this method, a session will be created if one doesn't already exist. Use getSession(false) if you don't want to create one if you're sure one doesn't exist.

0

精彩评论

暂无评论...
验证码 换一张
取 消