Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.