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

Session Tracking

kumar ar

Joined: Apr 27, 2007
Posts: 14
hi guys ..

i have problem with the different types of session tracking mechanisms available can you please tell me which is best one and why ??? hope you will help me ..

thanks and regards

[BPSouther: Added meaningful subject line]
[ April 30, 2007: Message edited by: Ben Souther ]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

You can do it either through cookies or through the use of url rewriting. The latter happens automatically.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Please use a meaningful subject line.
What do you mean by "different kind of session tracking"?
Where are you up to?

The nicely you place your question the better would be the chance of getting a perfect answer.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Please read this for more information on choosing more appropriate subject lines than "hello".

[Asking smart questions] [About Bear] [Books by Bear]
satya mahapatra
Ranch Hand

Joined: Jan 07, 2006
Posts: 134
There are two ways you can handle sessions.
1> Cookies
2> URL Rewriting
The most common and easiest way to handle seesion is cookies.
In cookies the session id will set as part of the response. But
if the browser wont support cookies then you have to go for URL
rewriting , beacause in url rewriting the session id will be appended
to the end of each url and browser wont care for that. Means it can't disable URL rewritng.

Regards,<br />Satya<br />SCJP,SCWCD
Leandro Melo
Ranch Hand

Joined: Mar 27, 2004
Posts: 401

Here are two articles I just posted in a similar thread in this forum.

Hope it helps

Leandro Melo
SCJP 1.4, SCWCD 1.4
Suman Sharma
Ranch Hand

Joined: May 16, 2005
Posts: 72
[Thread hijack removed. Suman Sharma, if you have a question, please ask it in your own topic.]
[ April 30, 2007: Message edited by: Bear Bibeault ]
I agree. Here's the link:
subject: Session Tracking
It's not a secret anymore!