Memcached based session handler.  
 More...
 | 
| 
int  | $acquiretimeout = 120 | 
|   | $acquiretimeout how long to wait for session lock 
  | 
|   | 
| 
int  | $lockexpire = 7200 | 
|   | $lockexpire how long to wait before expiring the lock so that other requests may continue execution, ignored if PECL memcached is below version 2.2.0. 
  | 
|   | 
| integer  | $lockretrysleep = 150 | 
|   | $lockretrysleep Used for memcached 3.x (PHP7), the amount of time to sleep between attempts to acquire the session lock.  More...
  | 
|   | 
| 
string  | $prefix | 
|   | $prefix session key prefix  
 
  | 
|   | 
| 
boolean  | $requireswritelock = false | 
|   | $requireswritelock does the session need and/or have a lock? 
  | 
|   | 
| 
string  | $savepath | 
|   | $savepath save_path string  
 
  | 
|   | 
| 
array  | $servers | 
|   | $servers list of servers parsed from save_path 
  | 
|   | 
Memcached based session handler. 
- Copyright
 - 2013 Petr Skoda  
 
- License
 - http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
 
 
◆ abort()
  
  
      
        
          | core\session\handler::abort  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Release lock on the session without writing it. 
May not be possible in older versions of PHP. If so, session may be written anyway so that any locks are released. 
 
 
◆ connection_string_to_memcache_servers()
  
  
      
        
          | static core\session\memcached::connection_string_to_memcache_servers  | 
          ( | 
          string  | 
          $str | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
Convert a connection string to an array of servers. 
"abc:123, xyz:789" to [ ['abc', '123'], ['xyz', '789'], ]
- Parameters
 - 
  
    | string | $str | save_path value containing memcached connection string  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ init()
      
        
          | core\session\memcached::init  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ kill_all_sessions()
      
        
          | core\session\memcached::kill_all_sessions  | 
          ( | 
           | ) | 
           | 
        
      
 
Kill all active sessions, the core sessions table is purged afterwards. 
Reimplemented from core\session\handler.
 
 
◆ kill_session()
      
        
          | core\session\memcached::kill_session  | 
          ( | 
            | 
          $sid | ) | 
           | 
        
      
 
Kill one session, the session record is removed afterwards. 
- Parameters
 - 
  
  
 
Reimplemented from core\session\handler.
 
 
◆ requires_write_lock()
  
  
      
        
          | core\session\handler::requires_write_lock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Has this session been opened with a writelock? Your handler should call this during start() if you support read-only sessions. 
- Return values
 - 
  
    | bool | true if session is intended to have a write lock.  | 
  
   
 
 
◆ session_exists()
      
        
          | core\session\memcached::session_exists  | 
          ( | 
            | 
          $sid | ) | 
           | 
        
      
 
 
◆ set_requires_write_lock()
  
  
      
        
          | core\session\handler::set_requires_write_lock  | 
          ( | 
            | 
          $requireswritelock | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
This is called after init() and before start() to indicate whether the session opened should be writable or not. 
This is intentionally captured even if your handler doesn't support non-locking sessions, so that behavior (upon session close) matches closely between handlers. 
- Parameters
 - 
  
    | bool | $requireswritelock | true if needs to be open for writing  | 
  
   
 
 
◆ start()
      
        
          | core\session\memcached::start  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ write_close()
  
  
      
        
          | core\session\handler::write_close  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inherited   | 
  
 
Write the session and release lock. 
If the session was not intentionally opened with a write lock, then we will abort the session instead if able. 
 
 
◆ $lockretrysleep
  
  
      
        
          | integer core\session\memcached::$lockretrysleep = 150 | 
         
       
   | 
  
protected   | 
  
 
$lockretrysleep Used for memcached 3.x (PHP7), the amount of time to sleep between attempts to acquire the session lock. 
Mimics the deprecated config memcached.sess_lock_wait. 
 
 
The documentation for this class was generated from the following file:
- lib/classes/session/memcached.php