Is there a way to create a tomcat session manually?
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.
精彩评论