PHP Session

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Tue Nov 13, 2012 8:27 am

Sessions are definitely the way to go.

if ($_SESSION['loggedin'] !== TRUE)
die("Sorry, you don't belong here...");

SQL requires a query every time a page is called.. while you may already be calling a load of queries, why put extra stress on your machine when you don't have to.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 5 guests