Jump to content

Need something simpled explaing for my working login script


wesleypipes

Recommended Posts

Call me stupid but what does the following mean:

1-    ($_SESSION['logged_in']!=1) (on my login, it means user isnt logged in)

2-    ($_SESSION['logged_in']==1) (on my login, it means i am logged in)


Can u describe the above code in simple terms please?
[code]<?php

if($_SESSION['logged_in']!=1)  { //If the session variable "logged_in" does not equal 1 or true.

//CONDITIONAL CODE HERE

}

if($_SESSION['logged_in']==1) {  //If the session variable "logged_in" equals 1 or true.

//CONDITIONAL CODE HERE

}
?>[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.