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. Login/Logout Problem

Login/Logout Problem

Scheduled Pinned Locked Moved ASP.NET
9 Posts 6 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.
  • S Offline
    S Offline
    Sundeep Ganiga
    wrote on last edited by
    #1

    Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G

    D S K A 4 Replies Last reply
    0
    • S Sundeep Ganiga

      Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G

      D Offline
      D Offline
      Dev S
      wrote on last edited by
      #2

      u can apply javascript to disable back button.

      S 1 Reply Last reply
      0
      • D Dev S

        u can apply javascript to disable back button.

        S Offline
        S Offline
        Sundeep Ganiga
        wrote on last edited by
        #3

        I am telling IE back button.If it is possible let me know how. Regards, Sundeep G

        A 1 Reply Last reply
        0
        • S Sundeep Ganiga

          I am telling IE back button.If it is possible let me know how. Regards, Sundeep G

          A Offline
          A Offline
          anilpal
          wrote on last edited by
          #4

          Hi, I am telling IE back button?? What does it mean. Pls can u explain it.

          Regards Anil Pal

          S 1 Reply Last reply
          0
          • S Sundeep Ganiga

            Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G

            S Offline
            S Offline
            specialdreamsin
            wrote on last edited by
            #5

            See Sandeep, On Every Page, Except Login Page, In Page Load Event Just write this Code. If Trim(Session("UserID")) = "" Then Response.Redirect("ErrorPage.aspx") End If Don't forget to clear the Session("UserID") value to "" on Logout or Session End Ramesh Sambari

            1 Reply Last reply
            0
            • A anilpal

              Hi, I am telling IE back button?? What does it mean. Pls can u explain it.

              Regards Anil Pal

              S Offline
              S Offline
              Sundeep Ganiga
              wrote on last edited by
              #6

              Hi Anil Pal(Especially for You), Get into Code project site and login with your email id and password.Now Click on "Sign out" and You will be seeing site with No login account.Now click on back(History) button,Then you will see some screen with only login Id, but not password.This is called authentication.This is what, i was searching for.Feel free to ask some more.Ok Bye. Best regards, Sundeep G

              S 1 Reply Last reply
              0
              • S Sundeep Ganiga

                Hi Anil Pal(Especially for You), Get into Code project site and login with your email id and password.Now Click on "Sign out" and You will be seeing site with No login account.Now click on back(History) button,Then you will see some screen with only login Id, but not password.This is called authentication.This is what, i was searching for.Feel free to ask some more.Ok Bye. Best regards, Sundeep G

                S Offline
                S Offline
                specialdreamsin
                wrote on last edited by
                #7

                Mr Sundeep, Have a look on the code I Posted earlier.. Even if you click Back button of the Internet Exploer, On Page Load event it will check the Session("UserID"), Obviously it will be empty, because you made it clear on signout...So immediately it will redirect to login page. Never you can see the backpage after you logged out. Ramesh Sambari

                1 Reply Last reply
                0
                • S Sundeep Ganiga

                  Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G

                  K Offline
                  K Offline
                  kumar_k508
                  wrote on last edited by
                  #8

                  By using javascript ,you can disable back/history button

                  modified on Thursday, April 2, 2009 5:51 AM

                  1 Reply Last reply
                  0
                  • S Sundeep Ganiga

                    Hi all, I have a problem with login and logout of website. as usual i can login into an website, but when i click signout and come to login page and click back button in IE or other browsers, i see a strange thing, it goes last visited screen of the application before signing out.Generaaly this should not happen.Can anyone help regarding this problem. It should not allow to go back once signout is clicked.Hope i will get early reply for this Query. Thanks Before answering, Sundeep G

                    A Offline
                    A Offline
                    Alok Sharma ji
                    wrote on last edited by
                    #9

                    are you surely check the properties windows for the logout button redirection to loginpage check it and if it is already done by you then try this: 1.make sure of session closing by session.abandon(); 2.make sure to check if session is not null on page load if so make sure to redirect the user to login page in case of session.tostring()==null;[not real code e.g. only]. and pls read some books before coming here. Have Fun, Alok

                    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