Permalink
Browse files

allow special cased cli sessions

  • Loading branch information...
1 parent 74b88bb commit 7a2312fa42f14197b904941f12f1c9a094a4fbff @weyrick committed Feb 2, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/smSessions.inc
View
@@ -132,7 +132,8 @@ class SM_session extends SM_object {
// check to see if we are in cli mode and if so, turn off cookies (gollum 6/18/2004)
if (php_sapi_name() === 'cli') {
$this->directive['useCookies'] = 'none';
- $this->directive['containerType'] = 'none';
+ if ($GLOBALS['SM_CLI_SESSION'] !== true)
+ $this->directive['containerType'] = 'none';
$this->debugLog("useCookies, session type set to 'none' in CLI mode");
}

0 comments on commit 7a2312f

Please sign in to comment.