[PHP] Re: shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
On 6/20/06, Adam Zey <[EMAIL PROTECTED]> wrote: Shutting down Apache would do the trick ;) But if you're in a shared hosting environment that may not be possible. Yeah, don't have full control over the server in this case. As for sessions, it depends how you track them. You can't kill all PH

[PHP] Re: shutting down a web app for maintenance

2006-06-20 Thread Adam Zey
Shutting down Apache would do the trick ;) But if you're in a shared hosting environment that may not be possible. As for sessions, it depends how you track them. You can't kill all PHP sessions in one go, but you could have your web app nuke the sessions of users after they come back after ma

[PHP] Re: shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
Thanks Adam, What you say makes good sense to me. Is there some method to run a script that kills all active sessions on a host? It could become part of the maintenance script I suppose: 1) Kill all active sessions 2) Put up generic maintenance screen 3) Deny further login attempts - Ben On 6/

[PHP] Re: shutting down a web app for maintenance

2006-06-20 Thread Adam Zey
Ben Liu wrote: Hello All, I'm not sure this is strictly a PHP related question or perhaps a server admin question as well. What do you do when you are trying to shutdown a web application for maintenance (like a membership or registration-required system)? I understand that you can temporarily u