In a web app, when user logs in, a HttpSession
is created using HttpSession s = request.getSession(true);
This creates a cookie with jsessionid
on the browser.
But if cookies are disabled on browser, How can i proceed with login?
Asked
Active
Viewed 755 times
0

Raghavendra N
- 209
- 8
- 25
2 Answers
1
If Cookies are disabled. You should be using URL Rewriting mechanism for Session tracking.
Code Example:

Ramesh PVK
- 15,200
- 2
- 46
- 50
-
Still a beginner... The examples are unclear. To append the jsessionid to url, how do i get the jsessionid first. need more help please... – Raghavendra N Oct 29 '15 at 03:12
0
The main purpose of logging in is to identify the user. The basic information of the user is stored in the cookie which is basically a text file containing jsessionid. It is the jsessionid we want and not the cookie itself. So, we can get hold of jsessionid and concat it with the url, we will still be able to access contents in the HttpSession object.

Raghavendra N
- 209
- 8
- 25