CodeIgniter Forums
Cookie vs Session? Did I got wrong? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Cookie vs Session? Did I got wrong? (/showthread.php?tid=79957)



Cookie vs Session? Did I got wrong? - castle - 08-23-2021

Hi,
I read that I could implement the "remember me" functionality using CI built-in Session Library, instead of using cookies. Is that true? If yes, is there any tutorial where I can find that?
Cheers.


RE: Cookie vs Session? Did I got wrong? - wuuyun - 08-24-2021

session and cookie all can use in ci4


RE: Cookie vs Session? Did I got wrong? - castle - 08-24-2021

(08-24-2021, 12:17 AM)wuuyun Wrote: session and cookie all can use in ci4

I need to work with ci3 for now. Is there a secure way of doing a "remember me" login using session?


RE: Cookie vs Session? Did I got wrong? - InsiteFX - 08-24-2021

Before you continue please read this article.
Implementing Secure User Authentication in PHP Applications with Long-Term Persistence (Login with "Remember Me" Cookies)

And here is one way of doing it.
Secure Remember Me for Login using PHP Session and Cookies