Kill Session [Urgent]
-
Hi, I'm using session for user name, now the problem is that when i click logoff i use this code to kill session: Session["username"]=null; Session.Abandon(); Response.Redirect("xxxx.aspx"); but this code didn't work and when i type userhome.aspx in brower. It allow user to get in this page and user name display on the page. Any solution... Thanks
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
Hi, I'm using session for user name, now the problem is that when i click logoff i use this code to kill session: Session["username"]=null; Session.Abandon(); Response.Redirect("xxxx.aspx"); but this code didn't work and when i type userhome.aspx in brower. It allow user to get in this page and user name display on the page. Any solution... Thanks
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
try this session.remove("username"); best regard Pathan
GOD HELP THOSE WHO HELP THEMSELVES
-
try this session.remove("username"); best regard Pathan
GOD HELP THOSE WHO HELP THEMSELVES
Hi Imran, Thanks for your help. I'm using session for username, now the problem is that when i click logoff i use this code to kill session: Session.remove("username"); Session.Abandon(); Response.Redirect("xxxx.aspx"); but this code didn't work and when i type userhome.aspx in brower(I did not close current brower). It allow user to get in this page and user name display on the page. Any solution... and i do understand [GOD HELP THOSE WHO HELP THEMSELVES] but GOD also like those who help their brothers. Thanks
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com