Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restricting Access to Page

Status
Not open for further replies.

schoch

Technical User
Jan 17, 2007
13
AU
I have created a login page with the usual login details from the server behaviour options. On an interior page of the restricted area I have an extra area that I need only to allow users with admin priveledges. However when apply this it does not let anyone in? Why is this happening? Any ideas?
 
you would show that area based on their user level....
depending on your server side the logic would run:
1.make sure that you can distinguish between standard users and admin by some field in your DB
Table Users:
-------------------------------
username | pass | user level
-------------------------------
usr | pass | 1
jack |1234 | 1
admin|admin| 2
--------------------------------
2. on login create another session eg. 'svUserLevel'
or pull the field from RecordSet on the page where u need it

3. conditionally display parts of page or entire page:
-If svUserLevel > '1' (meaning if user is admin)
--ResposeWrite or Echo "html, links"
-Else (user is not admin)
--Show standard html or just a message...


All the best!

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top