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. Log Out

Log Out

Scheduled Pinned Locked Moved ASP.NET
help
10 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.
  • N Offline
    N Offline
    NET India
    wrote on last edited by
    #1

    I'm designing a web page where i've taken a Log Out button on Information Page if the user click on this button the user is redirected to the Home Page and it's working as i want to. But there is a problem, i can again be appeared in the page(Information Page) through the Back button given above i do not know that's bar name........ Please Suggest Some way(s)

    V P 2 Replies Last reply
    0
    • N NET India

      I'm designing a web page where i've taken a Log Out button on Information Page if the user click on this button the user is redirected to the Home Page and it's working as i want to. But there is a problem, i can again be appeared in the page(Information Page) through the Back button given above i do not know that's bar name........ Please Suggest Some way(s)

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      .NET- India wrote:

      given above i do not know that's bar name

      The Browser Toolbar. You can not avoid back buttons. You can work around it by having a history.forward() snippet and page cache expiries.

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      N 2 Replies Last reply
      0
      • V Vasudevan Deepak Kumar

        .NET- India wrote:

        given above i do not know that's bar name

        The Browser Toolbar. You can not avoid back buttons. You can work around it by having a history.forward() snippet and page cache expiries.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        N Offline
        N Offline
        NET India
        wrote on last edited by
        #3

        not getting Please explain it ......... Thanks for your post

        E 1 Reply Last reply
        0
        • N NET India

          not getting Please explain it ......... Thanks for your post

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          trying researching what he has suggested on google

          1 Reply Last reply
          0
          • N NET India

            I'm designing a web page where i've taken a Log Out button on Information Page if the user click on this button the user is redirected to the Home Page and it's working as i want to. But there is a problem, i can again be appeared in the page(Information Page) through the Back button given above i do not know that's bar name........ Please Suggest Some way(s)

            P Offline
            P Offline
            P Tagore Srinivas Dhanunjay
            wrote on last edited by
            #5

            Hi buddy, You can use sessions, cookies or application to handle that problem. Google on it ;) Regards, Tagore

            modified on Monday, March 3, 2008 8:28 AM

            N 1 Reply Last reply
            0
            • P P Tagore Srinivas Dhanunjay

              Hi buddy, You can use sessions, cookies or application to handle that problem. Google on it ;) Regards, Tagore

              modified on Monday, March 3, 2008 8:28 AM

              N Offline
              N Offline
              NET India
              wrote on last edited by
              #6

              I'm using Session to logout Session["UserName"] = null; Response.Redirect("../Admin/HomePage.aspx"); and in Page Load i check whether or not Session["UserName"] is empty it is then redirect to home page otherwise the user to visit the information.......... But still it's not working in best of it's way...........

              E P 2 Replies Last reply
              0
              • N NET India

                I'm using Session to logout Session["UserName"] = null; Response.Redirect("../Admin/HomePage.aspx"); and in Page Load i check whether or not Session["UserName"] is empty it is then redirect to home page otherwise the user to visit the information.......... But still it's not working in best of it's way...........

                E Offline
                E Offline
                eyeseetee
                wrote on last edited by
                #7

                the browser back button will take you back to the page you were just on without going back to the server and re-loading the page, therefore the onload will not run again until the page is refreshed. The only way i can think is to somehow delete the cache or apply some sort of method to run when the browser back button runs

                E 1 Reply Last reply
                0
                • E eyeseetee

                  the browser back button will take you back to the page you were just on without going back to the server and re-loading the page, therefore the onload will not run again until the page is refreshed. The only way i can think is to somehow delete the cache or apply some sort of method to run when the browser back button runs

                  E Offline
                  E Offline
                  eyeseetee
                  wrote on last edited by
                  #8

                  check this article out: http://www.codeproject.com/KB/aspnet/NoCaching.aspx

                  1 Reply Last reply
                  0
                  • V Vasudevan Deepak Kumar

                    .NET- India wrote:

                    given above i do not know that's bar name

                    The Browser Toolbar. You can not avoid back buttons. You can work around it by having a history.forward() snippet and page cache expiries.

                    Vasudevan Deepak Kumar Personal Homepage
                    Tech Gossips
                    A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                    N Offline
                    N Offline
                    NET India
                    wrote on last edited by
                    #9

                    I've set the page no-cache on page load and it's working fine in Internet Explorer but not running fine in mozilla as i've described below please have a bit of your precious time.... 1.) I've a folder named Admin in this folder i've around ten web forms which can only be accessed by the administrator the first web form(after the successful login id and password) there are some more links on this web form e.g Top(one of the link) as i click on this Top link another web form opens and now if i click on the Log Out button then it opens the first web form Top if i use Back Button plz suggest what should i do...... 2.) I have a link for Change Password if the admin wants to change his/her password he/she can do this link show a Div on the form once the admin change his password and then click on the LogOut button and then use the back button then it show the Div again but it must not show it because the page is not being cached This is my code to no-cache Response.Buffer = true; Response.ExpiresAbsolute=DateTime.Now.AddDays(-1d); Response.Expires =-1500; Response.CacheControl = "no-cache"; Please have a bit of your precious time ...........

                    1 Reply Last reply
                    0
                    • N NET India

                      I'm using Session to logout Session["UserName"] = null; Response.Redirect("../Admin/HomePage.aspx"); and in Page Load i check whether or not Session["UserName"] is empty it is then redirect to home page otherwise the user to visit the information.......... But still it's not working in best of it's way...........

                      P Offline
                      P Offline
                      P Tagore Srinivas Dhanunjay
                      wrote on last edited by
                      #10

                      try this in Page Load if(Session["UserName"] == null && Page.IsPostBack) Response.Redirect("../Admin/HomePage.aspx");

                      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