You can use cookie too. It is simple and useful. page1.php setcookie('username',$username); page2.php if isset($_COOKIE['username']){$username...
You can pass variable from one page to another by, 1. SESSION variable; 2. by cookie; 3. storing variable in database (use when security is...
Separate names with a comma.