English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have encounter this error whereby when the user logout from my page the session does not seems to be remove... i had already insert the Session.Contents.RemoveAll()... why does the session isn't remove????

2007-03-11 18:41:33 · 3 answers · asked by Johnny B 1 in Computers & Internet Programming & Design

my page have a line which will say welcome user... the user is got from session... if i type the page in the url:http://localhost/mywebsite/webpage.aspx.. it will still say welcome user.. it is only when i click on the buttons then it will say u are not login.....

2007-03-11 19:04:31 · update #1

3 answers

use Session.Abandon(); instead.
This will kill the current session.

when i see the additional details... i think the session is being killed when u say Session.Contents.RemoveAll(),
but its just the browser cache that is giving the welcome screen.
what u can do is.. in the page load check if the session is empty or not set...
if so , redirect to some other page giving some error message sayin login again...

2007-03-11 18:55:04 · answer #1 · answered by rahul_Codes 2 · 0 0

Try setting the session to null manually such as Session["YourKey"] = null;

2007-03-12 01:52:30 · answer #2 · answered by Coosa 2 · 0 0

i am not sure.. but say what.. i save quite some money in housing insurance.. and tt's a good news.. so cheer up if u could not get an answer..... :P

2007-03-13 05:12:51 · answer #3 · answered by unknown 1 · 0 0

fedest.com, questions and answers