Jump to content

Make the fields in the Screen as READ ONLY for the second user?


krishna.p

Recommended Posts

Hi Experts,

      Iam new to php. would appreciate if could please clarify my doubt. let me give you breif explanation.

First user logins into application and say working on the ORDER screen. All the fields present in ORDER screen should be readonly for the remaining users until the first user logs out of that ORDER screen. how can i solve my problem. is there any specific concept that needs to implemented? How can i achieve it using SESSIONS?

        how can i catch the SESSION ID of the first user? if you people have any code snippets or working examples that would be very helpful to me.Thanks in advance.

 

Thanks,

krishna.p

I wouldn't use Sessions for that, but you can set a value in the DB when someone logs in and have each other user that logs in check that value.

 

But this leads to, what if they don't log out?

 

Agreed with the suggested method, and I would add to the second issue the idea to have an auto timeout or logout if the user has no activity for X number of minutes. So, log their actions, and if the user has not had any action in 10 minutes (or whatever), just auto log them out and allow another user to have access.

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.