What Is JSESSIONID in J2EE Web Application - JSP Servlet
What Is JSESSIONID in J2EE Web Application - JSP Servlet
Javarevisited
Blog about Java Program Tutorial Example How to, Unix Linux commands, Interview Questions, FIX Protocol, Tibco RV tutorials, Equities trading system, MySQL
Java 6
S UNDA Y , A UGUS T 12, 2012
Web Application
Java Java
Java Applications
Loading
Recent Posts
When J S E S S I O N I Dcreated in Web application? In Java J2EE application container is responsible for Session management and by default uses Cookie. When a user first time access your web application, session is created based upon whether its accessing HTML, JSP or Servlet. if user request is served by Servlet than session is created by calling r e q u e s t . g e t S e s s i o n ( t r u e )method. it accepts a boolean parameter which instruct to create session if its not already existed. if you call r e q u e s t . g e t S e s s i o n ( f a l s e )then it will either return n u l lif no session is associated with this user or return the associated H t t p S e s s i o nobject. If H t t p R e q u e s tis for JSP page than Container automatically creates a new Session with JSESSIONID if this feature is not disabled explicitly by using page directive % @p a g es e s s i o n = " f a l s e "% > .Once Session is created Container sends J S E S S I O N I Dcookie into response to the client. In case of HTML access, no user session is created. If client has disabled cookie than Container uses URL rewriting for managing session on which j s e s s i o n i dis appended into URL as shown below: https://localhost:8443/supermart/login.htm;j s e s s i o n i d =1A530637289A03B07199A44E8D531427 When HTTP session is i n v a l i d a t e d ( ) ,mostly when user logged off, old J S E S S I O N I Ddestroyed and a new J S E S S I O N I Dis created when user further login.
Recommendd Books Java Programming and Design Pattern Spring Framework Subscribe by email: Subscribe By Javin Paul
javarevisited.blogspot.in/2012/08/what-is-jsessionid-in-j2ee-web.html
1/3
7/15/13
Posts Comments
Please share with your friends if like this article Followers
1 comment:
Anonymous said... I hardly need someone able to decode a JSessionID to get the 'timeTag' in it (date of connection) contact [email protected] in France urgent and important June 13, 2013 at 3:39 PM
Post a Comment
E n t e ry o u rc o m m e n t . . .
November (8) October (15) September (8) August (9) Top 10 JDBC Best Practices for Java Programmer
Home
Older Post
How to delete empty files directories in Unix Linu... How to Convert Collection to String in Java Spri... How to write parametrized Generic class and method... What is JSESSIONID in J2EE Web application JSP S... Best Practices to write JUnit test cases in Java How to format String in Java String format Examp... How to get environment variables in JavaExample ... 5 ways to convert InputStream to String in Java July (9) June (12) May (10) April (14) March (28) February (18) January (35) 2011 (145) 2010 (33)
javarevisited.blogspot.in/2012/08/what-is-jsessionid-in-j2ee-web.html
2/3
7/15/13
About Me
Privacy Policy
javarevisited.blogspot.in/2012/08/what-is-jsessionid-in-j2ee-web.html
3/3