Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
login script to limit access to site depending on userid
Old 12-08-2004, 12:20 PM login script to limit access to site depending on userid
netcrawler's Avatar
Average Talker

Posts: 27
Location: QC, Canada
Trades: 0
I i would like to know how can i do this:

I have a admin area on my site that is already password protected, and in the admin section i have lots of links to administer certain area in my site. I want to give access to certain links depending on the users that are logged onto the admin area not all users will have access to the same links.

Does anyone have a sample script for me to work with..

Thanks and all help is gladly appreciated.


Marcel
netcrawler is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-08-2004, 10:35 PM
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
You can do this based on cookies.

Your cookie should have the username, userid, access level.

If cookie is present, check the access level.
If accesslevel is ok, display the link. <a href="restricted.asp">restricted link</a>

In the restricted.asp, check whether the user has the necessary access level ( for security).

If has the access level, entry is allowed. Other wise redirect.

Hope you get the idea.
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Reply     « Reply to login script to limit access to site depending on userid
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09827 seconds with 12 queries