Show session_interface.php syntax highlighted
<?php
class AuthException extends Exception {}
/**
* Session object which checks if current user is guest,registered and what are his rights.
*
* @package Session
* @author Luke Satin <cyberluk@seznam.cz>
* @version 1.0
*/
interface Session_interface {
/**
*
* @return bool Returns true if current session is valid eg. the user is logged in.
*/
public static function isValid();
/**
* This main method of Session class creates new session and sets its properties.At first it checks for users cookie validity and sends it to the {@link User} object.
*
* @return bool A boolean value is returned. You get TRUE if session is valid = user is logged or has been logged in and FALSE if session is no longer valid or if there was a possible security issue.
*/
public static function Create();
public static function Logout();
public static function getSID();
}
?>
See more files for this project here