Session Management / Code understanding

Hello ;D
I do have some issue with some kind os session access management to a web page, user seems to be kick out from their acces, I’m not programmer nore I write the code, but I would like to have a better understanding of the following piece of code :

    if ($mode == 'html') {
        if (!isset($_SESSION['SESS_ID_USER']) || ((time() - $_SESSION['SESS_LAST_TIME']) > $_SESSION['SESS_TIMEOUT']) || ($_SERVER['REMOTE_ADDR'] != $_SESSION['SESS_IP'])) {

My question really focus on how it work with “||” and how conditions will be met here.
Thanks for your help.

|| means the same thing as OR

This OR that OR that

Sponsor our Newsletter | Privacy Policy | Terms of Service