Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session creation

Status
Not open for further replies.

abyinsydney

Programmer
Feb 17, 2004
99
AU
greetings fellow citizen
i 've created a seesion in jsp by using
session.setAttribute("a",a) and accessing the values of this object on different pages

However when i cut and paste the url from the browser and place it on the fresh one i can still see the page .how do i invalidate the session
aby
 
sedj
i went thro the API BUT MY QUESTION STILL REMAIN UNSWERED .pLEASE HELP


ABY
 
greetings sedj
well http session.invalidate does not work

this is my piece of code
session.setAttribute("name",aby)

String aby=(string)session.setgetAttribute("Name")
how do i preceed further on clicking the sign off the session for aby should expire and i should be taken to login page.

i reckon its a 2 to 3 lines of code.i'm not getting it ,could you be kind enough to help me out
aby
 
Well, invalidating the session and redirecting if a certain session value is completly different. Which do you want to do ?

Invalidating the session will destroy the session and unbind any objects associated with it :

( )

This does not mean redirection. When you click "refresh" or whatver - you'll be assigned a new session ...
 
sedj
i'm sorry but i'm not understanding this concept at all.Could you let me know how to invalidate the seesion intrms of coding.

sorry for being a wombat but this is the last problem in my project and i'm not understanding it.

Please help
aby
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top