This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSESSIONID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSESSIONID" Watch "JSESSIONID" New topic


MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
I read in Head First Servlets Jsp that, "when using cookies for session tracking, the name of the session tracking cookie must be JSESSIONID".
But I didn't get where do we set cookie name programatically to JSESSIONID?

I am slow but sure
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60794

You don't. The container takes care of that for you.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
Similar Threads
SCWCD - On Cookies
oh why not push another question
cookies and jsessionid
reading SESSIONID header.
JSESSIONID mandatory name only in cookies not in url rewriting