it is bad way to do it. You can set cookie id and store that id in your database, next time just get the cookie id from the cookie and search on the database. And if it match you let the user in. That it.
Hey there, It’s possible to send someone a link with login and password and after he fill the page to get his Cookies and use in another pc directly logged in without put email and password? Thank you.
true i am using cookies for reembering the session if you go out of the tab or window and i am using the sessions id as the check to not access any dating and if is true display the data
sir can you please create online chat application where a user could send request and after accept the request then the user will be able to make chat only with the accepted users
Do not do this. This is the same as writing your user and pass very big on your car and then driving it around the city like nobody is reading it. Instead, just use the already built in remember option from the browser. That way is like writing your user and pass in a piece of paper and storing it in your car glove box.
Wow. Now friends.. Everybody should store their password unencrypted in the cookies. So everybody can hack and mess. Now friends, we, hackers everybody will be happy. Cheers. 👍👍👍
$result = mysqli_query($connect,$sql); $user = mysqli_fetch_array($result); Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\SCK\index.php on line 19 how can I fix this error?
never ever set any user information into a cookie. its a huge security hole.
how do you solve this by?
@@hanguyenuan4967 encrypt the data when you store it, decrypt the data when you display it
why did you not even mention that he is in a very big risk of a SQL injection?
"Now friends...." "Now friends..." "Now friends...."
Thanks John...
It is great tutorial. It does not matter if it is computer generated voice or not. What matters is that the audio clear enough for the audience
You should not make a cookie with user's information as a value
friends, friends friends........ really? you must be from India
it is bad way to do it. You can set cookie id and store that id in your database, next time just get the cookie id from the cookie and search on the database. And if it match you let the user in. That it.
The concept was executed perfectly, but storing password after destroying a session is really a bad idea.
Friends, welcome to the PHP login tutorial where *security is of no value.*
Uhmm storing password in a cookie? Really bad idea
now FRIENDS I'm out of here.
Hey there,
It’s possible to send someone a link with login and password and after he fill the page to get his Cookies and use in another pc directly logged in without put email and password?
Thank you.
not secured, it's like storing password into a cookie
the tutorial is good and really helpful. but the tutor sounds like a computer generated voice.
Maybe..because it "is" a computer voice ? haha..my friend..
The password should not be stored in cookies, instead you should generate a token
true i am using cookies for reembering the session if you go out of the tab or window and i am using the sessions id as the check to not access any dating and if is true display the data
you are the best php channel
Do not use this its not Save! Never store user data in a cookie!!!
not secure
i love your all videos .. txxx sir
Good job sir
$_SESSION["admin_name"] = $name; -> need to move out of if..remember. it must be in if($user)
To give “Remember me” functionality during login which type of cookie should be used?
OREO is the best one
@@odessa.ukraine lon. Joeae. Ce
That's very useful, thank you a lot
sir can you please create online chat application where a user could send request and after accept the request then the user will be able to make chat only with the accepted users
Do not do this. This is the same as writing your user and pass very big on your car and then driving it around the city like nobody is reading it.
Instead, just use the already built in remember option from the browser.
That way is like writing your user and pass in a piece of paper and storing it in your car glove box.
using cookie to save the passwords? wtf?
Wow. Now friends.. Everybody should store their password unencrypted in the cookies. So everybody can hack and mess. Now friends, we, hackers everybody will be happy. Cheers. 👍👍👍
$result = mysqli_query($connect,$sql);
$user = mysqli_fetch_array($result);
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\SCK\index.php on line 19
how can I fix this error?
It means that you only created the database but you didnt imort the database or no valid data in the database
set value=1 in remember me;
Is there any way to update cookies value to database in your tutorial? I think your lesson is incomplete.
Please help us create a complete login system with cookie
ah yes the classic yellow circle around the cursor
what is your script in log out?
thank you very much
thank you so much !
Pleasure friends its a pleasure. 😁 said by hacker
With his "friends", I know he's most most likely from India. :d
nice Boris voice
I wana set cookies for 1 day
Hi Kapil Pareek, please check this code for set cookies for 1 day.
Now friend, I thank you
Ya Sure, Salvador Cossa.
thanks
not found! terrible
Now friends you are ready to be hacked whit this bulshit technique ... :D
please also develop in Codeigniter
Thank you Umar Arain for writing to us. We appreciate your valuable feedback.
Good video :)
Thank you, have a nice day!
Please help us create a complete login system with cookie