9 class Session
implements ArrayAccess
11 function __construct(Config
$config, BaseUrl
$baseUrl, Response
$response) {
12 ini_set("session.cookie_path", $baseUrl->path
);
13 foreach ($config->session
as $key => $val) {
14 ini_set("session.$key", $val);
16 if (ini_get("session.use_cookies")) {
17 $response->addHeader("Vary", "cookie");
19 $response->addHeader("Cache-Control",
22 "must-revalidate" => true,
23 "max-age" => ini_get("session.cache_expire") * 60
29 function regenerateId() {
30 session_regenerate_id();
40 function __debugInfo() {
47 function &offsetGet($o) {
50 function __set($p, $v) {
53 function offsetSet($o, $v) {
56 function __isset($p) {
57 return isset($_SESSION[$p]);
59 function offsetExists($o) {
60 return isset($_SESSION[$o]);
62 function __unset($p) {
65 function offsetUnset($o) {