Closed

Login / out session system php mysql

This project was awarded to kodiaksoftware for $10 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30-$5000 USD
Total Bids
18
Project Description

Hi,

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

Users can login at [url removed, login to view], which is processed at [url removed, login to view] (based on the members table in my database (sql dump attached, along with all other necessary files).

TASKS:

Task 1) The [url removed, login to view] 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 [url removed, login to view] 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="[url removed, login to view]">Log Out</a>";
}

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

echo "Logged in as " . $member_firstname . " " . $member_lastname . ". <br/>
<a href="[url removed, login to view]">Log Out</a>";
}

else "<a href="[url removed, login to view]">Log In</a> or <a href="[url removed, login to view]">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 [url removed, login to view]

This code can be put on the page entitled [url removed, login to view], which currently begins with the code:

<?php

if (NOT LOGGED IN)

{
/// redirect to [url removed, login to view] //// }

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

?>

Task 4. Logging out. Task 2 includes code that displays a link to [url removed, login to view] for users who are logged in. [url removed, login to view] needs to contain the code to destroy the session and log the user out.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online