• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp: session id

 
Confused
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me that how to use seesion id in jsp page... and how to carry it to other page... plz send me some free source code...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And don't understand what you want to do, but you can get output the session id via <%= session.getId(); %>
 
Confused
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually Im using jsp and sometime some user is viewing others data instead of his own ... so i want to use seesion id to track specific user data!!!
But i have never used it session id and how to declare , where to declare and how to carry the variable to other page and close it!!!

Can plz help me on this !!!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No no, you don't have to declare it. This is managed by the container.
You should read some introduction about sessions, cookies and URL rewriting.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Piyali Mallick:

Can plz help me on this !!!


Unlikely, if you're not going to respond to the anwsers you're already received.
Did you read the answers in this thread?
http://www.coderanch.com/t/288934/JSP/java/jsp-data-overloading
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic