| Author |
jsp: session id
|
Confused
Ranch Hand
Joined: Jan 24, 2006
Posts: 54
|
|
|
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
Joined: Nov 24, 2005
Posts: 14672
|
|
|
And don't understand what you want to do, but you can get output the session id via <%= session.getId(); %>
|
[My Blog]
All roads lead to JavaRanch
|
 |
Confused
Ranch Hand
Joined: Jan 24, 2006
Posts: 54
|
|
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
Joined: Nov 24, 2005
Posts: 14672
|
|
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
Joined: Dec 11, 2004
Posts: 13410
|
|
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
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: jsp: session id
|
|
|