use the session class to store sessions

This commit is contained in:
Evan Prodromou
2009-06-27 06:20:24 -07:00
parent 0ca22cf6e2
commit 71dad1ff62
4 changed files with 48 additions and 13 deletions

View File

@@ -144,6 +144,9 @@ function common_ensure_session()
$c = $_COOKIE[session_name()];
}
if (!common_have_session()) {
if (common_config('sessions', 'handle')) {
Session::setSaveHandler();
}
@session_start();
if (!isset($_SESSION['started'])) {
$_SESSION['started'] = time();