Computing.Net > Forums > Web Development > Website Document Access!!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Website Document Access!!!

Reply to Message Icon

Name: Jay_0901
Date: April 14, 2005 at 15:45:50 Pacific
OS: Win XP SP 2
CPU/Ram: P4 3.0 Ghz/ 1GB
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: April 14, 2005 at 20:08:27 Pacific
Reply:

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


0

Response Number 2
Name: Jay_0901
Date: April 15, 2005 at 10:01:22 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Footer positioning proble... javascript menu



Post Locked

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


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Website Document Access!!!

website review www.computing.net/answers/webdevel/website-review/1973.html

webserver available? www.computing.net/answers/webdevel/webserver-available/318.html

Password protecting my website www.computing.net/answers/webdevel/password-protecting-my-website/4152.html