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.
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. 👍👍👍
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.
$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?