14 lines
256 B
PHP
14 lines
256 B
PHP
<?php
|
|
|
|
// Handles anything to do with sessions
|
|
class Session
|
|
{
|
|
public function __construct()
|
|
{
|
|
// Start new session if there is none
|
|
if (session_status() === PHP_SESSION_NONE)
|
|
{
|
|
session_start();
|
|
}
|
|
}
|
|
} |