Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i used for logout is
session["username"]=null;
session["userid"]=null;

but someone told me that you have to used session.clear.
tell me that
what i have to used for logout session.clear or session[userid]="" or session[userid]=null;
and why..??
Posted
Comments
Anurag Sinha V 14-Mar-14 1:17am    
Session.Abandon() should do what you're looking for...

1 solution

 
Share this answer
 
v2
Comments
VICK 14-Mar-14 6:31am    
My 5+. :)
Tom Marvolo Riddle 14-Mar-14 6:40am    
Thanks mate and welcome back!
VICK 14-Mar-14 6:48am    
welcome back to???
Tom Marvolo Riddle 14-Mar-14 7:09am    
CP.it's been a long time since i've seen you(i didn't see your activity here(may be i missed it))
VICK 14-Mar-14 8:41am    
Hmmm. Well! I think your "may be" would be a right answer.. :D
Any ways Thanks JAS24. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900