Login / out session system php mysql

IN PROGRESS
Bids
18
Avg Bid (USD)
$29
Project Budget (USD)
$30 - $5000

Project Description:
Hi,

I've got a simple login system I need completing.

Users can login at login.php, which is processed at login_result.php (based on the members table in my database (sql dump attached, along with all other necessary files).

TASKS:

Task 1) The login_result.php page may need to be tweaked to start a session.


Task 2) I'd like to display a user's status on all pages. I've set up the page display_login_status.php to show what I want here. The relevant code (which will obviously need to be altered) shows the logic I want:

<?php

if (logged_in && $member_display_name != "")
{

echo "Logged in as " . $member_display_name . ". <br/>
<a href="logout.php">Log Out</a>";
}

if (logged_in && $member_display_name == "")
{

echo "Logged in as " . $member_firstname . " " . $member_lastname . ". <br/>
<a href="logout.php">Log Out</a>";
}

else "<a href="login.php">Log In</a> or <a href="join.php">Join Up Now</a> "

?>

Task 3). There are a few pages on my site that I do not want people to be able to access unless they've logged in. If they try to go to one of these pages when they are not logged in, I'd like them to be redirected to login_required.php

This code can be put on the page entitled example_page_where_login_required.php, which currently begins with the code:

<?php

if (NOT LOGGED IN)

{
/// redirect to login_required.php //// }

else
{
//// continue opening page ////
}

?>

Task 4. Logging out. Task 2 includes code that displays a link to logout.php for users who are logged in. logout.php needs to contain the code to destroy the session and log the user out.

Skills required:
MySQL, PHP
Additional Files: vw_2012___02___17___login_logout_session_system_RAC_NameCryptedToProtectYourPrivacy_X2012217185631873764870807827768442664716.zip
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.