0

How can i securely keep user logged using Cookie in PHP

Dear Solo Learners, glad to be here. Please i know PHP COOKIES but im finding it hard to know what to store in the cookie from the user since sensitive information shouldnt be stored in the cookie

19th Dec 2022, 8:28 PM
Emeka Okeke
Emeka Okeke - avatar
1 Odpowiedź
0
In PHP it is better to use SESSION as a way to store sensative data for a period of time as for example a logged in user https://www.w3schools.com/php/php_sessions.asp
24th Dec 2022, 10:35 PM
Vanessa Nilsson