Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi I am trying to design a website in ASP using C#. I want my site to able able to authenticate users. I already have to authentication part done. Now I want the user to able to access certain document that normal people have no access to. Can anyone guide me on how to do this. Thanks

If you already have the authentication part done, I'm not sure where you are having the trouble.
The method you would use could depend upon wether this "document" is a download or another page. In either situation, I would have my authentication page create a session variable (something like "loggedon", o for no, 1 for yes).
If the document is a download, I would code the page so that the link is not shown to users who are not logged in.
If the document is a web page, you need to code the head of the page with an if then to see if the user is logged in. If yes, show the regular page. If no, show a page with a message that the content is only for registered users - or something like that.
Michael J

Sorry I didn't make myself clear...Actually I want the program to grant access to the authenticated user to a certain part of the site like a folder that is going to hold my specific documents

![]() |
Footer positioning proble...
|
javascript menu
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |