Em Andamento

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.

Habilidades: MySQL, PHP

Ver mais: 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

Acerca do Empregador:
( 93 comentários ) Australia

ID do Projeto: #2713075

Premiar a:

kodiaksoftware

See private message.

$10 USD em 14 dias
(13 Avaliações)
3.4

18 freelancers estão ofertando em média $29 para este trabalho

minhhoangduc

See private message.

$84.15 USD in 14 dias
(510 Comentários)
8.0
hoangvandungbk

See private message.

$30.6 USD in 14 dias
(273 Comentários)
6.9
stevebryant

See private message.

$42.5 USD in 14 dias
(436 Comentários)
6.6
sixbt

See private message.

$40.8 USD in 14 dias
(24 Comentários)
5.3
jparimal

See private message.

$60.35 USD in 14 dias
(16 Comentários)
4.7
sirajcse

See private message.

$25.5 USD in 14 dias
(26 Comentários)
4.7
ajitsg

See private message.

$20.4 USD in 14 dias
(30 Comentários)
4.6
muzammilmotif

See private message.

$38.25 USD in 14 dias
(39 Comentários)
4.5
AAR0Nmichael

See private message.

$10 USD in 14 dias
(56 Comentários)
4.4
mermerkaya

See private message.

$33.15 USD in 14 dias
(6 Comentários)
3.0
alexandrufilip

See private message.

$20.4 USD in 14 dias
(14 Comentários)
2.9
kundansonu1734

See private message.

$15 USD in 14 dias
(9 Comentários)
2.8
bishnoiraghu

See private message.

$30.6 USD in 14 dias
(4 Comentários)
1.5
shoaibphpmysql

See private message.

$20.4 USD in 14 dias
(1 Comentário)
0.6
kabuto178

See private message.

$20.4 USD in 14 dias
(1 Comentário)
0.0
Chanaka1200

See private message.

$10 USD in 14 dias
(0 Comentários)
0.0
codefury

See private message.

$5 USD in 14 dias
(0 Comentários)
0.0