Reputation: 681
i am new to session. I am a little dizzy with session. Before, i thought we need to start a session first, and then we can use session to do what we want to do.
Today, i use eclipse to create a java web application. i have not do anything with session. But when i check the cookies, there is a JSESSIONID in the request cookies, its value is a string. The Domain, Path, and Expires are N/A.
Why a JSESSIONID exists already?
I know this question maybe stupid, but i an really confused with session.
Upvotes: 0
Views: 76
Reputation:
If you have activated sessions then the JSESSIONID cookie will be created when you make a new request if you don't already have one, it will assign you an unique session ID.
You can disabled them using:
<%@ page session="false" %>
Upvotes: 1