Hi all,
DISCLAIMER: I've read through countless PHP manual pages and searched both PHPBuilder Community and Google for possible answers to the following issue, with no success.
I am trying to resolve a relatively complex issue for one of the projects I am working on....
Here is the scenario:
1) End-user/member logs in and we use SESSION variables to display customized "dynamic" content in "their" homepage.
2) Most fields in the user and profile tables are editable by the end-user/member, and I use the session_unregister() function and re-set session variables (session_start(), $_SESSION[''] = $newvalue;) with the new values entered by the user...this works fine.
3) Some fields can only be edited by the admin, but already set as SESSION vars to be used in the end-users/members custom homepage. The Admin edits some of these field, and of course, the end-user/member does not see the change since they are still logged in and the SESSION variable is set to the old value.
I've attempted to re-write our login logic that deletes out the "Persist Code" that is used to verify persist logins. This works okay, if the end-user/member closes their browser...but does not really log them off the system.
Of course, the easy answer is limit the number of SESSION vars set for the custom homepage and "hit" the database anytime someone accesses their custom homepage. But this is a huge load issue on the database (even with MySQL 4.0, co-located managed server).
So, my question is...Is there a method of deleting individual SESSION vars of the user account being edited by the Admin?
========================================
Buh Bye!
Cheers,
Me
DISCLAIMER: I've read through countless PHP manual pages and searched both PHPBuilder Community and Google for possible answers to the following issue, with no success.
I am trying to resolve a relatively complex issue for one of the projects I am working on....
Here is the scenario:
1) End-user/member logs in and we use SESSION variables to display customized "dynamic" content in "their" homepage.
2) Most fields in the user and profile tables are editable by the end-user/member, and I use the session_unregister() function and re-set session variables (session_start(), $_SESSION[''] = $newvalue;) with the new values entered by the user...this works fine.
3) Some fields can only be edited by the admin, but already set as SESSION vars to be used in the end-users/members custom homepage. The Admin edits some of these field, and of course, the end-user/member does not see the change since they are still logged in and the SESSION variable is set to the old value.
I've attempted to re-write our login logic that deletes out the "Persist Code" that is used to verify persist logins. This works okay, if the end-user/member closes their browser...but does not really log them off the system.
Of course, the easy answer is limit the number of SESSION vars set for the custom homepage and "hit" the database anytime someone accesses their custom homepage. But this is a huge load issue on the database (even with MySQL 4.0, co-located managed server).
So, my question is...Is there a method of deleting individual SESSION vars of the user account being edited by the Admin?
========================================
Buh Bye!
Cheers,
Me