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

Authentication

Scheduled Pinned Locked Moved ASP.NET
securityhelpquestion
2 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.
  • M Offline
    M Offline
    MoeInsairat
    wrote on last edited by
    #1

    Hello guys im building a web application, and i have a problem which is in the home page i have a login page, and other information.. i wanna to give access to all users to the information in the homepage, but not to the pages inside my application.. and how can i make the authenticated user to log out! 'i want to give access to all users to some pages not all pages' and the authenticated users can access them all. thanks in advance Regards

    Estarta

    R 1 Reply Last reply
    0
    • M MoeInsairat

      Hello guys im building a web application, and i have a problem which is in the home page i have a login page, and other information.. i wanna to give access to all users to the information in the homepage, but not to the pages inside my application.. and how can i make the authenticated user to log out! 'i want to give access to all users to some pages not all pages' and the authenticated users can access them all. thanks in advance Regards

      Estarta

      R Offline
      R Offline
      Rojan Gh
      wrote on last edited by
      #2

      As much as I know, you should put the pages that you don't want to get access to in a folder and put a Web.Config file in that folder and set this tag: this way you will make users to login before they can see the content of this folder(they will be redirected to login.aspx automatically)! And when you can Log some user in using: System.Web.Security.FormsAuthentication.RedirectFromLoginPage(); you can log him out using: System.Web.Security.FormsAuthentication.SignOut();;)

      Sojaner!

      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