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
questionsecurityhelp
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.
  • M Offline
    M Offline
    MoeInsairat
    wrote on last edited by
    #1

    Hello again :) The problem is that i have a web site with the following forms.. Admin,Student,Parent,Teacher... i set the authentication so no one can access this site unless he has a username and a passwd, my question is when a student enters the site.. he will have access to all the pages through the URL, so how can i set it only to his PAGE? Thanks in advance regards

    Estarta

    S 1 Reply Last reply
    0
    • M MoeInsairat

      Hello again :) The problem is that i have a web site with the following forms.. Admin,Student,Parent,Teacher... i set the authentication so no one can access this site unless he has a username and a passwd, my question is when a student enters the site.. he will have access to all the pages through the URL, so how can i set it only to his PAGE? Thanks in advance regards

      Estarta

      S Offline
      S Offline
      sybux2000
      wrote on last edited by
      #2

      Hi, I've done such a program but in PHP :) In fact you have to check on each page if the user have enough privilege to load this page. You should implement a little function in the page_load for exemple : if check_rights(userid) > 200 then ' have admin access for exemple ... and function check_rights(byval userid as integer) as integer ' do a select on a database to load the userlevel of the user return userlevel end function Hope it can help you !

      M 1 Reply Last reply
      0
      • S sybux2000

        Hi, I've done such a program but in PHP :) In fact you have to check on each page if the user have enough privilege to load this page. You should implement a little function in the page_load for exemple : if check_rights(userid) > 200 then ' have admin access for exemple ... and function check_rights(byval userid as integer) as integer ' do a select on a database to load the userlevel of the user return userlevel end function Hope it can help you !

        M Offline
        M Offline
        MoeInsairat
        wrote on last edited by
        #3

        Thanks alot buddy :) I will try it, but i know nth in PHP :) but i got the idea :)

        Estarta

        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