Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. clear everything!!!

clear everything!!!

Scheduled Pinned Locked Moved ASP.NET
databasequestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I am developing a simple online DBMS to browse my database online.... the main concern for me is to clear everything from the PC when the user disconnect so no body can go and click (Back) on the browser and see the pages if the user forgot to close it.. what I have done so far is :

    Session.RemoveAll();
    Response.Clear();
    Response.Redirect("Default.aspx");

    I am sure this is not enough.. am I right? so what else I should include there?

    M T T 3 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I am developing a simple online DBMS to browse my database online.... the main concern for me is to clear everything from the PC when the user disconnect so no body can go and click (Back) on the browser and see the pages if the user forgot to close it.. what I have done so far is :

      Session.RemoveAll();
      Response.Clear();
      Response.Redirect("Default.aspx");

      I am sure this is not enough.. am I right? so what else I should include there?

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      Q. What if the user hits CTRL+A, CTRL+C and then CTRL+V in notepad and forgets to close that? A. It is there own stupid fault if others see the data Where and when is your example code being called?

      Life goes very fast. Tomorrow, today is already yesterday.

      M 1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I am developing a simple online DBMS to browse my database online.... the main concern for me is to clear everything from the PC when the user disconnect so no body can go and click (Back) on the browser and see the pages if the user forgot to close it.. what I have done so far is :

        Session.RemoveAll();
        Response.Clear();
        Response.Redirect("Default.aspx");

        I am sure this is not enough.. am I right? so what else I should include there?

        T Offline
        T Offline
        thatraja
        wrote on last edited by
        #3

        You need to clear the cache too. Refer this[^]

        thatraja |Chennai|India|


        Brainbench certifications
        Down-votes are like kid's kisses don't reject it :-)
        Do what you want quickly because the Doomsday on 2012 :-)

        1 Reply Last reply
        0
        • M musefan

          Q. What if the user hits CTRL+A, CTRL+C and then CTRL+V in notepad and forgets to close that? A. It is there own stupid fault if others see the data Where and when is your example code being called?

          Life goes very fast. Tomorrow, today is already yesterday.

          M Offline
          M Offline
          musefan
          wrote on last edited by
          #4

          musefan wrote:

          Where and when is your example code being called?

          What is wrong with that question that gets a vote of 1?

          Life goes very fast. Tomorrow, today is already yesterday.

          1 Reply Last reply
          0
          • J Jassim Rahma

            Hi, I am developing a simple online DBMS to browse my database online.... the main concern for me is to clear everything from the PC when the user disconnect so no body can go and click (Back) on the browser and see the pages if the user forgot to close it.. what I have done so far is :

            Session.RemoveAll();
            Response.Clear();
            Response.Redirect("Default.aspx");

            I am sure this is not enough.. am I right? so what else I should include there?

            T Offline
            T Offline
            T M Gray
            wrote on last edited by
            #5

            You should really abandon the session rather than just remove all of the contents. The response.clear and redirect don't do anything to get rid of the history. You need to be looking more at the cache. If you do everything in update panels or with other ajax methods, then the back button won't do much.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups