Click here to Skip to main content
15,909,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to start a new session when a browser is opened until it closes
Posted

1 solution

Hi..
Try this code :
C#
Session.Abandon();
Response.Cookies.Add(new HttpCookie("SessionId", ""));


Refer this link also :http://support.microsoft.com/?kbid=899918[^]
 
Share this answer
 
Comments
Member 10378142 5-Apr-14 2:03am    
thanks for answering
Member 10378142 5-Apr-14 2:16am    
i want to start a new session when a browser is opened
Honey Jagyasi 5-Apr-14 2:32am    
Read that article. http://support.microsoft.com/?kbid=899918

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



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