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
questioncsharpasp-netsharepointcom
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.
  • R Offline
    R Offline
    Ridge Howison
    wrote on last edited by
    #1

    Hello All, Thanks for reading this post. Here is my question. One of the development teams in my company is building the company website using ASP.NET. My team is building an ASP.NET website which part of the website. My app is going to reside as an application folder inside the main app. Iam using forms authentication for my site. One of the requirements is after performing login into the main site, if the user clicks on a particular link it should log the user directly onto my site as well(Single Sign On). However much I try, on clicking on the link on the main page, it always goes to the logon page on my application because of forms authentication. How can i use forms auth to sign the user into my application and go directly to the page. The user id is stored in a cookie. Can i create a basepage which actually does the forms auth and pages inherit from it?? I have explained the scenario in very simple terms and it is more complicated than this. Basically this is what i want to do...lets say my site is www.abc.com i log in...and reach page abc.com/A.aspx ...i click on a link which will needs to take me to abc.com/appFolder/C.aspx....but when I do this, I always go to abc.com/appFolder/B.aspx which is the login page for appFolder(forms auth).. plz help...sample code highly appreciated. Thanks RH

    M 1 Reply Last reply
    0
    • R Ridge Howison

      Hello All, Thanks for reading this post. Here is my question. One of the development teams in my company is building the company website using ASP.NET. My team is building an ASP.NET website which part of the website. My app is going to reside as an application folder inside the main app. Iam using forms authentication for my site. One of the requirements is after performing login into the main site, if the user clicks on a particular link it should log the user directly onto my site as well(Single Sign On). However much I try, on clicking on the link on the main page, it always goes to the logon page on my application because of forms authentication. How can i use forms auth to sign the user into my application and go directly to the page. The user id is stored in a cookie. Can i create a basepage which actually does the forms auth and pages inherit from it?? I have explained the scenario in very simple terms and it is more complicated than this. Basically this is what i want to do...lets say my site is www.abc.com i log in...and reach page abc.com/A.aspx ...i click on a link which will needs to take me to abc.com/appFolder/C.aspx....but when I do this, I always go to abc.com/appFolder/B.aspx which is the login page for appFolder(forms auth).. plz help...sample code highly appreciated. Thanks RH

      M Offline
      M Offline
      Member 4555330
      wrote on last edited by
      #2

      I have this problem too. Can anyone help me? I use Forms authentication and have 3 .aspx pages: 1) Login.aspx 2) Default.aspx 3) Another_one_page.aspx I open my Login.aspx, succesfully log in and redirect myself to Default.aspx. But when I try to go to Another_one_page.aspx from Default.aspx: Response.Redirect("~/Another_one_page.aspx"); my browser redirect me to the Login.aspx page. And when I insert credentials into Login.aspx, I will be redirected to the Default.aspx page again. So, the Another_one_page.aspx is fully unavailable. Thanks for any useful information!

      modified on Monday, April 6, 2009 3:57 AM

      R 1 Reply Last reply
      0
      • M Member 4555330

        I have this problem too. Can anyone help me? I use Forms authentication and have 3 .aspx pages: 1) Login.aspx 2) Default.aspx 3) Another_one_page.aspx I open my Login.aspx, succesfully log in and redirect myself to Default.aspx. But when I try to go to Another_one_page.aspx from Default.aspx: Response.Redirect("~/Another_one_page.aspx"); my browser redirect me to the Login.aspx page. And when I insert credentials into Login.aspx, I will be redirected to the Default.aspx page again. So, the Another_one_page.aspx is fully unavailable. Thanks for any useful information!

        modified on Monday, April 6, 2009 3:57 AM

        R Offline
        R Offline
        Ridge Howison
        wrote on last edited by
        #3

        couple of things. 1.check if the forms auth cookie is being set after you login. 2. try response.redirect("Another_one_page.aspx",false);

        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