Php session is both set and
===

I have a problem in php with a session variable `$_SESSION['user_id']`. At the top of every page i include a init.php file which contains `session_start()`. I have pasted the 3 files in pastebin. Links below:

init.php : http://pastebin.com/cF7Lny5h

login.php : http://pastebin.com/Prm9D5dk

index.php : http://pastebin.com/yC0V1TzZ

Note: the `$_SESSION['user_id']` can be set manually, $login just returns a number according to if the login was successfully. The problem is that the `$_SESSION['user_id']` somehow only get set in login.php and not the other files. If i check if the 'user_id' isset in for example index.php it says not set. Really need some help. If i need to provide more code, plz give a comment


