Im a newboy in .net please help ,I am using a Session Variable for storing some values in aspx Page. Actually I want to clear session values when user Leave page to go other page. I know there is PageUnload Event where I can Clear Session but i need to clear session only after the User leaves a Page.
Is there other way to clear Session variables in aspx page.???
Session variable is for storing data that is using for single user in all pages. You don’t have to use it in your scenario. Use ViewState or page variables against.