Put this at the top of the php page - after any headers
declare(strict_types=1);
ini_set("session.gc_maxlifetime",3600);
session_start();
include("../class/db.class.php");
<!DOCTYPE html>
<html lang="en">
declare(strict_types=1);
disables implicit type coercion (automatic type casting) for function arguments and return types.
When enabled, PHP will throw a TypeError
if the data type of a passed argument or returned value does not exactly
match the declared type hint.
ini_set("session.gc_maxlifetime",3600);
Sets the clock for the countdown 3600 seconds/4 hours before the page logs them out
session_start();
starts the session so session variables are available to the page
include("../class/db.class.php");
include files next - typically classes (database, user, admin, wm, etc)
need to include them first before initializing them
Copyright 2026 Deko Software
Permission not required for any repoduction from this web site.
Time Left: 01:00:00
12px