File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes HttpSession / Cookie / URL Rewriting  - Which is Preffered?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "HttpSession / Cookie / URL Rewriting  - Which is Preffered??" Watch "HttpSession / Cookie / URL Rewriting  - Which is Preffered??" New topic
Author

HttpSession / Cookie / URL Rewriting - Which is Preffered??

Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Dear All,
Hey,
I am currently working with 'Session Management' in servlets. My book talks about three different
techniques to achieve session management.
1) Simple Session tracking by using an object of HttpSession
2) By using object of Cookie
3) By URL Rewriting / embedding the session info in the response
Keeping in mind real world application. Which of the three are preffered? I am finding myself
quite comfortable in working with option 1) and 3) in the small codes (like those given in the
book).
Is it important to master the cookie based technique also, if yes, then can anybody give me a url
of it's tutorial. My book does not talk about cookies much except for retrieving them from the
clients browser.
Thanks in advance.
Bye,
Tualha Khan


SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3215
"Lesson: Saving Client State" in

http://java.sun.com/docs/books/tutorial/servlets/client-state/index.html

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
IntelliJ Java IDE
 
subject: HttpSession / Cookie / URL Rewriting - Which is Preffered??
 
Threads others viewed
session management (Mock Exam Question)
Force HttpSession to use URL Rewriting
Confusion in URL Rewriting
Chapter 6(Session Management) notes (HFSJ) for revision
which session tracking method is good?
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com