Summary | Session not cleaned up in alarms.php |
Queue | Horde Base |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | js-horde (at) jk1 (dot) net |
Created | 08/05/2009 (5812 days ago) |
Due | |
Updated | 11/13/2009 (5712 days ago) |
Assigned | 11/13/2009 (5712 days ago) |
Resolved | 11/13/2009 (5712 days ago) |
Milestone | |
Patch | No |
Only destroy the session if we are actually running via the cli. Bug:
8482 and also resolves
Bug: 8701http://git.horde.org/diff.php/framework/Cli/lib/Horde/Cli.php?rt=horde-git&r1=4c1ef7437017c2c9aee53eecb0dc3dea03ab3b97&r2=778778570869506ccec9470e15ba9f79c06912d0
Only destroy the session if we are actually running via the cli.
Also fixes
Bug: 8701Bug: 8482http://cvs.horde.org/diff.php/framework/CLI/Attic/CLI.php?rt=horde&r1=1.42.6.27&r2=1.42.6.28&ty=u
State ⇒ Assigned
Taken from Jan Schneider
Taken from
Assigned to Michael Rubinsky
from the cli? i.e.:
- register_shutdown_function(array($this, '_shutdown'));
+ if ($this->_console) {
+ register_shutdown_function(array($this, '_shutdown'));
+ }
}
CLI?
name to be set in auth would require a session, right?
name to be set in auth would require a session, right?
Assigned to
I was thinking that we should just not call session_start() if
php_sapi_name() == 'cli'.
itself should be responsible for destroying it. At a minimum, we
should allow passing an option to CLI to indicate we don't want to
kill any active sessions.
will be loaded before base.php. Beside that, it wouldn't help with bug
8482, because backend.php wouldn't even work without a session.
State ⇒ Feedback
#8701, maybe a better solution wouldbe to avoid opening a session from the CLI in the first place?
constructor, so that the session is destroyed at the end of *any* CLI
script.
a more comprehensive approach.
Thanks for fixing it.
Assigned to Jan Schneider
State ⇒ Resolved
constructor, so that the session is destroyed at the end of *any* CLI
script.
http://cvs.horde.org/diff.php/framework/CLI/Attic/CLI.php?rt=horde&r1=1.42.6.25&r2=1.42.6.26&ty=u
Priority ⇒ 1. Low
State ⇒ Assigned
session is destroyed anyway?
what was done there.
State ⇒ Feedback
session is destroyed anyway?
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: horde_alarms.php.patch
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ Session not cleaned up in alarms.php
Type ⇒ Bug
alarms.php, I get sessions left around every time my alarms.php cron
job runs. The attached patch nukes the session when finished.