This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/_sakura/components/Sessions.php

20 lines
280 B
PHP
Raw Normal View History

2015-03-25 09:55:52 +00:00
<?php
/*
* Session Handler
*/
2015-03-25 09:59:10 +00:00
namespace Sakura;
2015-03-25 09:55:52 +00:00
class Session {
2015-03-29 15:54:27 +00:00
// Initiate new session
public static function init() {
// Start PHP session
if(session_status() != PHP_SESSION_ACTIVE)
session_start();
}
2015-03-25 09:55:52 +00:00
}