how to login using salt hash password and logout php mysql

preview_player
Показать описание
-signup form using salt hash sha256 for password encryption
-login verification for salt hash sha256 for password encryption
-login and logout button in dummy site
-after login make SESSION variable for show welcome guest or login user name
-Show logout button when user logged in+logout page and show/hide signup and logout button when required
for sample snippet code :
or
-----------------------------------------------------------------------------------------------------
thank you for watching
keep subscribe our channel h2zone
and don't forget to press on bell icon to get all upcoming videos of our h2zone channel realted to computer and technology tricks and solutions
#window #android #iphone #c #games #photoshop #php #python #wordpress #internet #tricks
Рекомендации по теме
Комментарии
Автор

thanks a lot for this tutorial..
I wish You make as a search php using ajax or just a simple search php code to search from the Database

zack
Автор

how could I manage to stay in the same page (login.php) if my password or username is incorrect? because now we are gointg/redirected to the login_next_page.php due to the HTML: <form action="login_next_page.php" method="POST">

Leilektsoglou
Автор

Thanks a lot, Η2 ΖΟΝΕ, great tutorials. Both videos, registration and login were awesome and fully understood. I was able to replicate your method and it worked like a charm. However, when I tried to implement it on my exact website I found a peculiar error, which I was able to solve as follows...

First, the error was in the login.php file. In the "Welcome : Username/Guest" position it was always displaying "Guest", even though all credentials were checked correctly. I run some test which concluded that the error was in the "user_name" variable.

Originally you coded as... (login.php)
$row = mysqli_fetch_assoc($result);
echo "your name and password is correct";
session_start();



Apparently, the last line could not be fed with the "user_name" variable, so I changed it...

LOOK at the last line of code...


I hope this can be of an assistance.

I would really love to see how you can manage user/password activation through email, you know the gmail/yahoo... way. In those cases when the user registers, an automatic email is sent to the user, with a link to activate their account. Well, I would really love to see how can you pull this one.

Thanks again, most appreciated...keep up I've just subscribed ;)

kyriakosorfanakos