This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Session Tracking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Tracking" Watch "Session Tracking" New topic
Author

Session Tracking

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I want to know where to use the following methods of session tracking.
1. User Login For e.g ) Entry Screen
2. Hidden HTML Shopping Cart Items & Quantity
3. URL rewriting addition info for selected link
4. Cookies User name & password. Other data like address, telephone numbers.
5. Session Handling API Sensitive information, Shopping cart details.
Am i correct. If someone can give me some more live examples and the pitfalls in each method it would be of great help.
Bye
simple steps
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
I really don't understand your question, esp. when you use the word "method".
IMHO, the session tracking interface (javax.servlet.http.HttpSession) is one of the greatest inventions in Java, I think. It allows you to concentrate on the business needs and not on the details of HOW is it that you "track" the Web session of a user.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
By methods i meant which of the listed options i need to use for session tracking.
Srividya Shiv
Ranch Hand

Joined: Jul 20, 2000
Posts: 31
U can do session tracking in any of the following ways
1. Hidden fields
2. Cookies
3. Using 'HttpSession'
4. URL rewriting
U may use any of the ways depending on ur requirement. For eg if ur browser wont support cookies, then use any of the others.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session Tracking
 
Similar Threads
switching between cookies and url rewritten, HELP
shopping cart or shopping memo?
problem with using session attributes
[Ask] How much space for session in tomcat server?
Session within session