krishna.p Posted August 25, 2008 Share Posted August 25, 2008 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 Link to comment https://forums.phpfreaks.com/topic/121258-make-the-fields-in-the-screen-as-read-only-for-the-second-user/ Share on other sites More sharing options...
revraz Posted August 25, 2008 Share Posted August 25, 2008 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? Link to comment https://forums.phpfreaks.com/topic/121258-make-the-fields-in-the-screen-as-read-only-for-the-second-user/#findComment-625156 Share on other sites More sharing options...
obsidian Posted August 25, 2008 Share Posted August 25, 2008 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. Link to comment https://forums.phpfreaks.com/topic/121258-make-the-fields-in-the-screen-as-read-only-for-the-second-user/#findComment-625183 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.