Page 1 of 1

login with user level access

Posted: Wed Nov 16, 2011 11:55 pm
by jauson
does anyone how to build a login with user access level in php? could you please advise me how to do int? tnx

Re: login with user level access

Posted: Thu Nov 17, 2011 12:39 am
by uday8486
First things which you need here is to decide what are the type of user access levels which you need. And what are access level for each user.
Then you need to create a table in database for each roles access and also what is accessible to each user of a particular type.

Suppose you have a page which is accessible to type1 user, you need to check first whether the user has access to this page or not and then perform neccessary steps.

Re: login with user level access

Posted: Thu Nov 17, 2011 1:27 am
by jauson
I made a table user

id
name
access_level e.g.
(1) corresponding to view
(2) view/edit

but in my script i didnt know how to start the code.