File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Session Tracking Example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Tracking Example" Watch "Session Tracking Example" New topic

Session Tracking Example

Rishabh Shah
Ranch Hand

Joined: Nov 30, 2010
Posts: 36
I want to work on Application which maintain session of Users. Now, there are different methods for session tracking, which are
1) Cookies,2)URL Rewriting,3) Session.

In above method, which are best and why. Can anyone give me example of it ?

I have done example via HttpSession. but, to make big application like shopping cart or online examination which is best for develope huge application ?
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 544
I am not sure what is meant by #3 in your post, Session.

If cookies are disabled then URL Rewriting comes into the picture.

If you refer any JSP/servlet book you will get this information.

For example you can yourself run a servlet/jsp in your local webserver with
1) Cookies enabled
2) Cookies disabled
and you can spot the jsessionid.

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 219
It is better to search in the threads before posting a new thread.

You can search in the previous threads on session tracking.

Vipul Kumar
Rishabh Shah
Ranch Hand

Joined: Nov 30, 2010
Posts: 36
Thanks...I have gone through previous thread for sessions...and thank you.
I agree. Here's the link:
subject: Session Tracking Example
It's not a secret anymore!