Authentication!
-
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
-
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
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 ...
andfunction 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 ! -
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 ...
andfunction 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 !Thanks alot buddy :) I will try it, but i know nth in PHP :) but i got the idea :)
Estarta