Part 9-Admin Panel(Logout): Logout System with Session Destroy in php

preview_player
Показать описание
Here.. in this video, we have done, how to logout after login system with session.. so.. in this logout system.. we are destroying the session and unset the session who the user have logged in.
Source Code:

Part 8 Admin Panel: Login System (Session Start and Secure)

Part 9 Admin Panel: Logout System (Session Desytroy)

Part 10 [-A-] Admin Panel: Multi Login (User or Admin) Roles and Permission

Part 10 [-B-] Admin Panel: Multi Login (User or Admin) Roles and Permission
Рекомендации по теме
Комментарии
Автор

I really have to say, you have an excellent talent for teaching. You are not shy to admit that you have made a mistake and the step-by-step approach is amazing. I'll look forward for more such tutorials. Thank You

abhikingofkings
Автор

your previous video is cut sir . and here now you didn't include how you create the security.php and the email address will pop up instead of valerie luna, what should i do sir ? i dont know how you did that and it makes me confuse

joshuavalencia
Автор

Sir, I am not getting icons displayed, even if i added css file, so please help

mangeetasingh
Автор

When I click on logged out button that user is logged out but other users also logged out automatically . What can i do .

echocoding
Автор

session['username'] is not working sir. In query the username is blank .
when I logout from the system it logouts but when i type index.php the page open ups with the past username.

hashinyrao
Автор

sir your previous video thing os securing is not working.... please help

DR-jlfm
Автор

Can i know the css code for logout.php?

CHIAYENTAN
Автор

I state that I am not a php programmer, but I had the following problem in this tutorial and I think
I have solved it, asking for confirmation and maybe it will help someone else who has had the same problem:

in the video, at 11:18, the "security.php" file had the following code:

<? Php
session_start ();
if (! $ _ SESSION [ 'username'])
{
 header ('Location: login.php');
}
?>

but returned error, not letting me enter the admin panel. The complete code that solves the problem is the following:

<? Php
session_start ();
It includes ( 'database / dbconfig.php');
if ($ dbconfig)
{
    // echo "Database Connected";
}
else
{
 header ('Location: database / dbconfig.php');
}
if (! $ _ SESSION [ 'username'])
{
 header ('Location: login.php');
}
?>

and I had to add

session_start ();

on the "login.php" page

I hope to receive confirmation from someone, thanks.

fabiotaverna
Автор

sir if i include security.php, it creates ERR_TOO_MANY_REDIRECTS error. how can we eliminate this?

kalainilas
Автор

you must start session in top of login.php, to get $_SESSION['status'], because in header.php session not starting.

davidmamulashvili
Автор

Hi..while iam using security.php file, Iam getting pls help me

shameempv
Автор

Dear Sir, I am follow all the step and after that I am face "localhost redirected you too many times" error. Can you please let me know how to fix this error.

abdulwahid-fnrm
Автор

session is not getting destroyed.
when I logout from the system it logouts but when i type index.php the page open ups with the past username.
Help ASAP.

HimanshuSharma-ongt
Автор

the login page its onlt checks is there are any email it is not checkin the correct password

mahamedahmed
Автор

im not getting dropdown when i clicked for logout

RajaKumarVanukuru
visit shbcf.ru