This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes Jsp and servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Jsp and servlet" Watch "Jsp and servlet" New topic

Jsp and servlet

gajanan deshpande

Joined: Jun 30, 2001
Posts: 18
I have an session and if i open something in other window can i give a new session id to this new window,is it possible.
ken chou
Ranch Hand

Joined: Feb 08, 2001
Posts: 68

What's the purpose for doing this?
SoonAnn Lim
Ranch Hand

Joined: Jun 21, 2001
Posts: 155
If you are using the same browser, you will be attached with the same session. If you open another browser type Netscape then IE, you will get another session id.
Andrew Shafer
Ranch Hand

Joined: Jan 19, 2001
Posts: 338

You can open a new window and have it maintain a different session, but you must track your sessions by rewriting URL explicitly instead of cookies.

I agree. Here's the link:
subject: Jsp and servlet
jQuery in Action, 3rd edition