no cookie for just reading

This commit is contained in:
ProjectPatatoe 2021-03-21 13:59:39 -07:00
commit 7e709addb5
3 changed files with 6 additions and 2 deletions

View file

@ -1,9 +1,10 @@
<?php
session_start();
if (isset($_COOKIE['PHPSESSID']))
session_start();
function login()
{
if (session_status() == PHP_SESSION_NONE) return false;
if (isset($_SESSION[config("site.url")]['user']) && !empty($_SESSION[config("site.url")]['user'])) {
return true;
} else {