In Log-in.php I have
$email=$_POST[\'email\'];
$pass=$_POST[\'
Defining session before everything, No output should be before that, NO OUTPUT
Set your session in a page and then you have access in that, for example this is page 1.php
Using and Getting session in 2.php
NOTE: Comments don't have output.
I think you are not setting session, and because of that PHP doesn't know that session variable.
Your login should be like this