aspose file tools*
The moose likes JSP and the fly likes jsp: session id Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp: session id " Watch "jsp: session id " New topic
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: 14688
    
  16

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: 14688
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp: session id