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. forms Authentication

forms Authentication

Scheduled Pinned Locked Moved ASP.NET
security
12 Posts 3 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.
  • G geeeeeeeetha

    Hi, Forms authentication not working in my system..... Same code working in others system..... Send me some solution Regards Jayabharathi

    A Offline
    A Offline
    Abhijit Jana
    wrote on last edited by
    #2

    rjayaabharathi@gmail.com wrote:

    Forms authentication not working in my system..... Same code working in others system.....

    Do you expect that we have to guess that what is not working in your system, what error you are getting or What is working on other system ? Please be specific while asking any question so that we can help you out. Thanks !

    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

    G 1 Reply Last reply
    0
    • A Abhijit Jana

      rjayaabharathi@gmail.com wrote:

      Forms authentication not working in my system..... Same code working in others system.....

      Do you expect that we have to guess that what is not working in your system, what error you are getting or What is working on other system ? Please be specific while asking any question so that we can help you out. Thanks !

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      G Offline
      G Offline
      geeeeeeeetha
      wrote on last edited by
      #3

      hi not throwing any exception.... but always returning User.Identity.IsAuthenticated = false

      S A 2 Replies Last reply
      0
      • G geeeeeeeetha

        hi not throwing any exception.... but always returning User.Identity.IsAuthenticated = false

        S Offline
        S Offline
        sashidhar
        wrote on last edited by
        #4

        Try like this

        Page.User.Identity.IsAuthenticated

        or

        HttpContext.Current.User.Identity.IsAuthenticated

        if the same problem comes let me know..!

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        G 1 Reply Last reply
        0
        • G geeeeeeeetha

          hi not throwing any exception.... but always returning User.Identity.IsAuthenticated = false

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #5

          rjayaabharathi@gmail.com wrote:

          but always returning User.Identity.IsAuthenticated = false

          :) Does your application hosted on IIS? What authentication mode are you using on IIS ?

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          S G 2 Replies Last reply
          0
          • A Abhijit Jana

            rjayaabharathi@gmail.com wrote:

            but always returning User.Identity.IsAuthenticated = false

            :) Does your application hosted on IIS? What authentication mode are you using on IIS ?

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            S Offline
            S Offline
            sashidhar
            wrote on last edited by
            #6

            LOl I am Not answering This..!

            LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

            A 1 Reply Last reply
            0
            • S sashidhar

              LOl I am Not answering This..!

              LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #7

              sashidhar wrote:

              LOl I am Not answering This..!

              :laugh: I got your point !!! ;)

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              S 1 Reply Last reply
              0
              • A Abhijit Jana

                sashidhar wrote:

                LOl I am Not answering This..!

                :laugh: I got your point !!! ;)

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                S Offline
                S Offline
                sashidhar
                wrote on last edited by
                #8

                Yes ..!and the Other Thing is Yesterday Mistake..!

                LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                1 Reply Last reply
                0
                • S sashidhar

                  Try like this

                  Page.User.Identity.IsAuthenticated

                  or

                  HttpContext.Current.User.Identity.IsAuthenticated

                  if the same problem comes let me know..!

                  LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                  G Offline
                  G Offline
                  geeeeeeeetha
                  wrote on last edited by
                  #9

                  Same problem

                  S 1 Reply Last reply
                  0
                  • A Abhijit Jana

                    rjayaabharathi@gmail.com wrote:

                    but always returning User.Identity.IsAuthenticated = false

                    :) Does your application hosted on IIS? What authentication mode are you using on IIS ?

                    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                    G Offline
                    G Offline
                    geeeeeeeetha
                    wrote on last edited by
                    #10

                    i'm using froms authentication

                    1 Reply Last reply
                    0
                    • G geeeeeeeetha

                      Same problem

                      S Offline
                      S Offline
                      sashidhar
                      wrote on last edited by
                      #11

                      Where r u writing the above code..!Can You show the sample code..! and the other thing wat abt the IsApproved Status ..!Is it false or True by default..!

                      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                      G 1 Reply Last reply
                      0
                      • S sashidhar

                        Where r u writing the above code..!Can You show the sample code..! and the other thing wat abt the IsApproved Status ..!Is it false or True by default..!

                        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                        G Offline
                        G Offline
                        geeeeeeeetha
                        wrote on last edited by
                        #12

                        in page load, If User.Identity.IsAuthenticated = True And User.Identity.Name = HttpContext.Current.Session("username") Then Else Response.Redirect("..\index.aspx") End If

                        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