Here is the idea.... ...I have a index.php.... ... The application is have one page only, just like the facebook wall, if the user is logined, they can see their "wall", but if they are not logined, they see a register page.... ....
Should I put all these login in the index.php? or I need to separate two index.php...one is logined_index.php, and notLogined_index.php??
Moreover, how can I prevent someone who is not logined in the index.php? Thank you.