Jump to content

Login ideas...


RIRedinPA

Recommended Posts

Hi

 

I'm building a small production schedule type of site for internal use.

 

Here is how it works. You search by either id, product, employee, etc. and the results are returned in a tabular format. Users can edit whether a project is completed or not.

 

I also want it to double as the admin. The admins would be able to switch projects between designers, raise or lower priorities, delete, add, edit items. Nothing fancy. I don't need any complex security, just a simple username/password combo. No one is going to try and hack this up. So here were my thoughts:

 

Initiate a session and set a variable - $isAdmin  - to false. When validating the admin login form is it possible to use ajax to change the session variable to true? Is the php page called through AJAX linked in any way to the page where the javascript handler is? I'm kind of sketchy on sessions, are the variables global across pages until you move off the site?

 

Any help would be appreciated, even completely new directions.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/134227-login-ideas/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.