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. FormsAuthentication's RedirectToLoginPage Method

FormsAuthentication's RedirectToLoginPage Method

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 2 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
    seee sharp
    wrote on last edited by
    #1

    Hello, I am using FormsAuthentication.RedirectToLoginPage() in my web application. I use this to redirect back if user puts some invalid character(requirement) Because of this, it keeps on increasing the length of URL.. it keeps on appending the redirect url value in querystring... . any clue, how can I get rid of this problem. Appreciate your help.

    - ashish

    M 1 Reply Last reply
    0
    • S seee sharp

      Hello, I am using FormsAuthentication.RedirectToLoginPage() in my web application. I use this to redirect back if user puts some invalid character(requirement) Because of this, it keeps on increasing the length of URL.. it keeps on appending the redirect url value in querystring... . any clue, how can I get rid of this problem. Appreciate your help.

      - ashish

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

      Where in your application are you using this method? Seems it's used in the wrong place.

      S 1 Reply Last reply
      0
      • M minhpc_bk

        Where in your application are you using this method? Seems it's used in the wrong place.

        S Offline
        S Offline
        seee sharp
        wrote on last edited by
        #3

        I am calling this on clicking of logout. OR if I detect some invalid operation, I again call the same method which in having that statement.

        - ashish

        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