You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
748 B
33 lines
748 B
<?php
|
|
/**
|
|
* Адаптация стандартного механизма работы с сессиями для Harmonious
|
|
* Код взят отсюда: http://php.net/manual/ru/function.session-set-save-handler.php
|
|
*/
|
|
|
|
class Harmonious_Session_Handler_Fake extends Harmonious_Session_Handler {
|
|
|
|
public function open( $savePath, $sessionName ) {
|
|
return(true);
|
|
}
|
|
|
|
public function close() {
|
|
return true;
|
|
}
|
|
|
|
public function read( $id ) {
|
|
return (string) "";
|
|
}
|
|
|
|
public function write( $id, $sessionData ) {
|
|
return strlen($sessionData);
|
|
}
|
|
|
|
public function destroy( $id ) {
|
|
return true;
|
|
}
|
|
|
|
public function gc( $maxLifetime ) {
|
|
return true;
|
|
}
|
|
}
|
|
?>
|
|
|