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 Session Tracking with HttpSession Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Tracking with HttpSession" Watch "Session Tracking with HttpSession" New topic
Author

Session Tracking with HttpSession

priya shankar
Ranch Hand

Joined: May 12, 2003
Posts: 51
Hi
Session tracking using HttpSession is implemented using Cookies,URL re writing------Justify ...
If my question is wrong...why should we go for HttpSession Object , though we have cookies,URL rewrting ,etc
priya
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

httpsession is based on transient cookies i.e. the cookie dies when the browser is closed.
Persisitent cookies are the which are stored in secondary storage. There is a limit to the number of cookies that be stored for a server. I guess it is 20 and size of each cookie is also limited. There is also security concern with using cookies if the machine is shared. For example is some site uses cookies and stores password in cookie. I was actually able to read my own password from the cookie. If someone else uses your machine he/she will be able to get hold of your password.
Problem with url rewriting - It can only be used with dynamic pages and not static pages i.e HTML.
Is some one disables cookies then URL rewriting is the only way out.
[ August 11, 2003: Message edited by: Pradeep Bhat ]
[ August 11, 2003: Message edited by: Pradeep Bhat ]

Groovy
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

http://developer.java.sun.com/developer/onlineTraining/webcasts/pdf/webcamp/dchen/dchen5.pdf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Tracking with HttpSession