how to create session in asp.net?

  • Thread starter Thread starter himskap
  • Start date Start date
H

himskap

Guest
i have made 2 pages....1 for login n next to show after successful login....
on login page i have created a button....in its handler i have created session.... on the load event of next page i m checking for the availibity of the session variable n its value.... its workin well..... but the problem comes when i press back button of the browser.....after signing out when i press back button the page is being displayed.....(this should not happend).... can anyone help me regarding this...?? plz reply soon....
 
u can use too way for solve this problem! but i suggest u that when u logged out change Session[n] = null; and when back is clicked u will see the page but if page was reloaded your session availability is false!
 
Back
Top