ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Handler.php
Go to the documentation of this file.
1 <?php
44 abstract class Slim_Session_Handler {
45 
49  protected $app;
50 
56  final public function register( Slim $app ) {
57  $this->app = $app;
58  return session_set_save_handler(
59  array($this, 'open'),
60  array($this, 'close'),
61  array($this, 'read'),
62  array($this, 'write'),
63  array($this, 'destroy'),
64  array($this, 'gc')
65  );
66  }
67 
75  abstract public function open( $savePath, $sessionName );
76 
82  abstract public function close();
83 
90  abstract public function read( $id );
91 
104  abstract public function write( $id, $sessionData );
105 
112  abstract public function destroy( $id );
113 
123  abstract public function gc( $maxLifetime );
124 
125 }