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. My page is not redirecting to proper Login.aspx page

My page is not redirecting to proper Login.aspx page

Scheduled Pinned Locked Moved ASP.NET
sysadminsecurityhelp
5 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.
  • C Offline
    C Offline
    coolsatty
    wrote on last edited by
    #1

    In my Web.config file,authentication mode is "Form" and login url is "Login.aspx" which is in root directory.when i am calling a page which is in sub directory,then my page should automatically redirect to "Login.aspx" for authentication.but my problem is that instead of redirecting the page to "login.aspx" in root directory it searches in the same sub directory hence it does not get a file. But when i am working offline ie on local PC,i don't get this problem.when i have uploaded this project on server i face this problem. Thank u.

    coolsatty

    D 1 Reply Last reply
    0
    • C coolsatty

      In my Web.config file,authentication mode is "Form" and login url is "Login.aspx" which is in root directory.when i am calling a page which is in sub directory,then my page should automatically redirect to "Login.aspx" for authentication.but my problem is that instead of redirecting the page to "login.aspx" in root directory it searches in the same sub directory hence it does not get a file. But when i am working offline ie on local PC,i don't get this problem.when i have uploaded this project on server i face this problem. Thank u.

      coolsatty

      D Offline
      D Offline
      Declan Bright
      wrote on last edited by
      #2

      Have you the path attribute set in the web.config?

      <forms name="ASPXAUTH" loginUrl="Logon.aspx" protection="All" timeout="30" path="/" />

      It should default to the root path anyway but adding it in may solve your problem.

      Declan Bright www.declanbright.com

      C 1 Reply Last reply
      0
      • D Declan Bright

        Have you the path attribute set in the web.config?

        <forms name="ASPXAUTH" loginUrl="Logon.aspx" protection="All" timeout="30" path="/" />

        It should default to the root path anyway but adding it in may solve your problem.

        Declan Bright www.declanbright.com

        C Offline
        C Offline
        coolsatty
        wrote on last edited by
        #3

        still facing the same problem.

        coolsatty

        D 1 Reply Last reply
        0
        • C coolsatty

          still facing the same problem.

          coolsatty

          D Offline
          D Offline
          Declan Bright
          wrote on last edited by
          #4

          So what have you tried? Is the IIS setup unusual in any way? Not sure if this is valid but try a path of "~/" or just "~".

          Declan Bright www.declanbright.com

          C 1 Reply Last reply
          0
          • D Declan Bright

            So what have you tried? Is the IIS setup unusual in any way? Not sure if this is valid but try a path of "~/" or just "~".

            Declan Bright www.declanbright.com

            C Offline
            C Offline
            coolsatty
            wrote on last edited by
            #5

            Even this is not working,check out the code i have written but everything is fine when i am running in my PC ie offline.when i upload in server i get this error.and server is handled by some third party.Thank you

            coolsatty

            modified on Friday, March 28, 2008 12:57 AM

            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