Skip to content

Make tomcat not create session when HttpReqest comes in, so we have a sessionless service and save many memory resource by this.

Notifications You must be signed in to change notification settings

patrickstarz/tomcat-without-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

tomcat-without-session

Make tomcat not create session when HttpReqest comes in, so we have a sessionless service and save many memory resource by this.

Steps:

1,clone or download this project.
2,expert a jar package with your IDE.
3,copy the jar to ${tomcat}/lib.
4,edit ${tomcat}/conf/context.xml,modify <Manager className="com.nosession.SessionManager" />
just like the context.xml in our project
5,access your web service,you will find that tomcat will not response cookie to browser again.

About

Make tomcat not create session when HttpReqest comes in, so we have a sessionless service and save many memory resource by this.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages