I need to push updates to a live website written in php. Because of the changes made, current client session variables will cause a cascade of errors.
I thought of pushing a function call to reset sessions, but I would have to push a new update with that call removed which means only clients who refreshed while the call was present would get a new session.
Is there a standard way to handle this? This is on a shared server so I would need a php or htaccess solution.