Skip to content

Instantly share code, notes, and snippets.

@jpalala
Created April 1, 2022 02:00
Show Gist options
  • Save jpalala/ffa02de37694605df34e062dc9a88d70 to your computer and use it in GitHub Desktop.
Save jpalala/ffa02de37694605df34e062dc9a88d70 to your computer and use it in GitHub Desktop.
php session handler can be overriden
<?php
SessionHandler implements SessionHandlerInterface , SessionIdInterface {
/* Methods */
public close ( ) : bool
public create_sid ( ) : string
public destroy ( string $id ) : bool
public gc ( int $max_lifetime ) : int|bool
public open ( string $path , string $name ) : bool
public read ( string $id ) : string
public write ( string $id , string $data ) : bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment