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