In Progress

Login / out session system php mysql

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.

Skills: MySQL, PHP

See more: session php, login php code with mysql, session, login php, php mysql join table, session php login, mysql join table, login logout php system, mysql table join, php sql code, php logout, redirect status code, login|logout|code, session task, redirect login, php display mysql table page, simple php mysql login page, simple php mysql task, access database php mysql, php mysql table login, php simple login page, php login users, php mysql access log, mysql login system, simple php log

About the Employer:
( 93 reviews ) Australia

Project ID: #2713075

Awarded to:

kodiaksoftware

See private message.

$10 USD in 14 days
(13 Reviews)
3.4

18 freelancers are bidding on average $29 for this job

minhhoangduc

See private message.

$84.15 USD in 14 days
(510 Reviews)
8.0
hoangvandungbk

See private message.

$30.6 USD in 14 days
(273 Reviews)
6.9
stevebryant

See private message.

$42.5 USD in 14 days
(436 Reviews)
6.6
sixbt

See private message.

$40.8 USD in 14 days
(24 Reviews)
5.3
jparimal

See private message.

$60.35 USD in 14 days
(16 Reviews)
4.7
sirajcse

See private message.

$25.5 USD in 14 days
(26 Reviews)
4.7
ajitsg

See private message.

$20.4 USD in 14 days
(30 Reviews)
4.6
muzammilmotif

See private message.

$38.25 USD in 14 days
(39 Reviews)
4.5
AAR0Nmichael

See private message.

$10 USD in 14 days
(56 Reviews)
4.4
mermerkaya

See private message.

$33.15 USD in 14 days
(6 Reviews)
3.0
alexandrufilip

See private message.

$20.4 USD in 14 days
(14 Reviews)
2.9
kundansonu1734

See private message.

$15 USD in 14 days
(9 Reviews)
2.8
bishnoiraghu

See private message.

$30.6 USD in 14 days
(4 Reviews)
1.5
shoaibphpmysql

See private message.

$20.4 USD in 14 days
(1 Review)
0.6
kabuto178

See private message.

$20.4 USD in 14 days
(1 Review)
0.0
Chanaka1200

See private message.

$10 USD in 14 days
(0 Reviews)
0.0
codefury

See private message.

$5 USD in 14 days
(0 Reviews)
0.0