Development

Changeset 7823

You must first sign up to be able to contribute.

Changeset 7823

Show
Ignore:
Timestamp:
03/12/08 09:43:38 (6 months ago)
Author:
fabien
Message:

added a session_id parameter to the sfSessionTestStorage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/storage/sfSessionTestStorage.class.php

    r4890 r7823  
    4242    } 
    4343 
    44     if (array_key_exists('session_id', $_SERVER)) 
     44    $this->sessionId = null; 
     45    if ($this->getParameter('session_id')) 
     46    { 
     47      $this->sessionId = $this->getParameter('session_id'); 
     48    } 
     49    else if (array_key_exists('session_id', $_SERVER)) 
    4550    { 
    4651      $this->sessionId = $_SERVER['session_id']; 
     52    } 
    4753 
     54    if ($this->sessionId) 
     55    { 
    4856      // we read session data from temp file 
    4957      $file = $this->getParameter('session_path').DIRECTORY_SEPARATOR.$this->sessionId.'.session';