3 ms·
$_SESSION['logged_in'] is only used there as it was already available to control whether the session is valid or not. There's no point making an API call when t
by makethetick 15y ago
$_SESSION['logged_in'] is only used there as it was already available to control whether the session is valid or not.
There's no point making an API call when the data is already there.
Anyway, it's just a quick and dirty way to integrate a Twitter login system, it should be modified to suit.