PHP Session

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Re: PHP Session

Post by egami » 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

Who is online

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