Hobbies/Interests: (choose at least one) Golfing Hunting Reading (Domain and web hosting)

Hobbies/Interests: (choose at least one)

 

How It Works That whole page is the registration page. It is used to allow users to register for your login system. The page allows users to choose different options for their accounts and restricts users from using someone else s username for registration. Once users are registered, they are allowed to log in to the system and modify their account information as they see fit. The index.php page checks whether or not a user is logged in. Again, the $_SESSION[ ] variable is the one being checked to see if users have already been logged in and they are just revisiting some pages. If they are not logged according to those session variables, they will be shown the unlogged_user.php page. Assuming they have logged in, they will be shown the logged_user.php page. The unlogged_user.php page is displayed if the user is not logged in and their session has not yet been created. That was checked when they visited the index.php page. The logged_user.php page is displayed if the user is logged in and their session has been created. That was also checked when they visited the index.php page. Also, it displays the username that they used to log in with in the welcome message. The $_SESSION[ user_logged ] is the user s username from the database. Here s a quick recap of what you ve done: . You have an index page that checks whether or not a user is logged in. . Based on that check, it either tells the user to log in or register to allow access to his or her personal information area. . You have the registration area covered, along with the login process, and are keeping users tracked with their session information. 382 Chapter 12
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply