class Session {
private $session;
public function __construct() {
$this->session = $_SESSION;
}
public function set($key, $value) {
if( isset( $this->session[$key] ) ) {
return false;
}
$this->session[$key] = $value;
}
public function get($key) {
return isset( $this->session[$key] ) ? $this->session[$key] : false;
}
}