14-session_variables/welcome.php File Reference

Go to the source code of this file.

Functions

 main ()
 This is where program execution starts.
 show_welcome_page ()
 This function displays welcome page to user with link for logout.php page to logout.


Function Documentation

main (  ) 

This is where program execution starts.

This function will check with session variables if user is logged in or not. If user is logged in welcome message along with link for logout page is displayed. If user is not logged in then he/she is redirected to index.php page.

Returns:
Nothing

Definition at line 57 of file welcome.php.

References get_session(), redirect(), and show_welcome_page().

show_welcome_page (  ) 

This function displays welcome page to user with link for logout.php page to logout.

Returns:
Nothing

Definition at line 32 of file welcome.php.

Referenced by main().


Generated on Fri Nov 4 14:16:55 2011 for PHP example documentation by  doxygen 1.4.7