A
Anonymous
Guest
hi there!
Ok,
I am trying to implement a login system.
According to who had logged in, i want different people to have access to different sites.
e.g Manager - all site
Admin - only inventory.
How can i do this???
The method im thinking of using;
Ask user to log on - getting there username and password. These will already be on a databse.
Check the access they have - this will be a number e.g.1,2,3,4 corresponding with their access.
On each page this number will be checked, using sessions. According to this number a certain menu for navigation will be shown, only allowing access to these parts of the site.
if someone tries to type in the url directly into a web browser, there is a check in place to see if a session exists, if not then the user will be asked to log in.
Will this do???
The system needs to be fairly secure.
Thanks
Ok,
I am trying to implement a login system.
According to who had logged in, i want different people to have access to different sites.
e.g Manager - all site
Admin - only inventory.
How can i do this???
The method im thinking of using;
Ask user to log on - getting there username and password. These will already be on a databse.
Check the access they have - this will be a number e.g.1,2,3,4 corresponding with their access.
On each page this number will be checked, using sessions. According to this number a certain menu for navigation will be shown, only allowing access to these parts of the site.
if someone tries to type in the url directly into a web browser, there is a check in place to see if a session exists, if not then the user will be asked to log in.
Will this do???
The system needs to be fairly secure.
Thanks