dealing with session objects...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swathichoudary
    New Member
    • Dec 2007
    • 1

    dealing with session objects...

    Hi everybody.... please excuse me if my que.. sounds stupid... i am new to asp.net.... My que. is
    even i am killing the session with session abandon method... but stilll i am able to go to the previous page by clicking the back button.... even though i am checking session state in every page load......
    i know this sounds messy.......... .....
    But please help me guys.....
  • Ranjan kumar Barik
    New Member
    • Aug 2007
    • 95

    #2
    Originally posted by swathichoudary
    Hi everybody.... please excuse me if my que.. sounds stupid... i am new to asp.net.... My que. is
    even i am killing the session with session abandon method... but stilll i am able to go to the previous page by clicking the back button.... even though i am checking session state in every page load......
    i know this sounds messy.......... .....
    But please help me guys.....
    Hi,

    If your session has abandoned then your private data have already destroyed and going to the previous page will not set the destroyed session variables again. But if some secured data is being displayed then you can do one thing- You can redirect user to another page like; Home_page, etc. after session.abandon ed() is called.

    Happy Programming!
    :)

    Comment

    • jhardman
      Recognized Expert Specialist
      • Jan 2007
      • 3405

      #3
      1- ASP forum is for "classic" ASP and most definitely not for ASP.NET. I'll move you to the appropriate forum.

      2- When you hit the "back" button you do not go to the web, you see a static copy of the web page that your browser has cached, saved on your computer in "temporary internet files". To prevent caching of web pages with sensitive content there is an HTML setting you should look up. I don't know the code off-hand, but you could google "prevent caching"

      Jared

      Comment

      Working...