I've encountered a weird problem with PHP Sessions that I'm not sure how to fix. I know that there's a problem with my code, but Googling the matter and searching for answers her yielded no results...possibly because I have no idea how to make keywords for this!
Basically I'm making a login script to learn PHP better, and so I encountered sessions. I got them working somewhat, but trouble is that when I successfully log in, the session that's created logs the world into my account no matter from where or with what browser is used.
I'm pretty sure I'm missing a step, so if anyone could help me figure that out, that'd be great!
Presently I have this on top of every page dealing with sessions:
session_id("tenaarFeiriSess"); // Define the session name.
@session_start();
error_reporting(E_ALL);
The actual login applies the session like this, where $usr = username:
$_SESSION['loggedin'] = $usr;
What am I missing?