Session::exists (method)

Last updated: Tue, Oct 31, 2023 1:55 pm
Return to Knowledgebase

Purpose

Checks for the existence of a session

Location

users/classes/Session.php

Parameters

This function does not take any arguments

Example

Session::exits('sessionName);

Further Documentation:

Checks if a session exists when provided the session name. Session name can be found in init.php.

if(Session::exists('user')){
echo "true";
}