I am trouble with session; I know it theoretically but I encountered with it how to use session , transferring username to
but you have to initialize session_start(); in all web pages where you have need to access that session variables.
session_start();