• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet, jsp getSession confused.

 
jamil lusa
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

J2ee has a very good feature which is we can get the session easily under the care of the J2ee, for example, request.getSession() will do the thing for me. but could we use the same mechanism but provide our own session id? because i don't know how J2ee encrypt the session so probably i will want to provide my own session id but i don't want to create a new mechanism to retrieve it because it has been done nicely in J2ee (has mentioned above).

So any suggestion for this?


thanks in advanced.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65125
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not understanding why you would want to do this. I'd recommend just using the session as is.
 
jamil lusa
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:I'm not understanding why you would want to do this. I'd recommend just using the session as is.


It could be due to customer's requirement, since they have their own encryption and maybe they do not want to show the key text as "jsessionId" (i cannot remember the term, something like jxxxxxx) in the client's cookie file. and blah blah blah....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic