Description: A user login prompt is set up on the left-NAV for user login convenience. When user is in the main user login page, the left-NAV login is hidden to avoid confusion.
File created:
1)login.php: This is the user login main page. After login, a user is forwarded to the categories to view all the products.
2)loginVal.php: It receives form data from login.php to verify auth of user. User's DB is checked to verify the user ID.
3)logout.php: It clears session data forwards user to login.php upon successful logout
4)includes/loginOnlyINC.php: It protect pages that need authorization and redirect out unauthorized user to other pages.
5)includes/loginINC.php: It shows logout link on any page if user is logged in. Shows login FORM if NOT logged in!
6)includes/logoutINC.php: It shows logout link on any page if user is logged in. Shows login link if NOT logged in!
Learnt: An alternative way for user to loggin to the session protected pages. The whole idea is similar to Admin login page in Assignment#5. "includes/loginOnlyINC.php" file plays an important role as a guidance of confidential web-pages.
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2012
(231)
-
▼
March
(26)
- Showing the error message of ajax/jquery requests ...
- Assignment #6 User Login Setup
- Build a PHP-Based Content Management System
- MySQL tools
- die() and exit() Functions in php
- How to offset a value with leading 0 or chr
- PHP variable
- Company ...
- Floating data type in php
- Display record in table format
- Apress Beginning Ajax with PHP From Novice to Prof...
- PHP while loop
- PHP GET & POST
- Objects
- PHP Loop Types
- Send 2 Diferent Date and Get Number of Days as Output
- logical operators in php
- mysql dump
- Multiple Table Join in MySQL
- Passing variable values from URL with PHP Get method
- Step by step PHP video tutorials from start to fin...
- Ultimate Fade Slideshow - Safari and Chrome
- PHP Login Script with Remember Me Feature
- No title
- Control Structures in PHP: IF
- file append in php
-
▼
March
(26)