Need some guidance cookies - 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: Need some guidance cookies (/showthread.php?tid=65770) |
Need some guidance cookies - wolfgang1983 - 07-22-2016 I have a question about setting token for cookies. When the user checks the remember me it will insert the user id and identifier and token to my auto login table But the token should that be stored in a session? I can set the cookie data fine but now it just trying to make the checks work so when user has clicked remember me it will auto log them in. I am just new to creating a remember me with id and tokens. http://pastebin.com/JmRk6d3M PHP Code: <?php RE: Need some guidance cookies - InsiteFX - 07-22-2016 If the remember me token passes and you get the users login data just set the session logged_in = true You have logged the user in so that should be all you need to do. In your Auth Library: PHP Code: /** RE: Need some guidance cookies - wolfgang1983 - 07-22-2016 (07-22-2016, 04:20 AM)InsiteFX Wrote: If the remember me token passes and you get the users login data just set the session logged_in = true Thanks will have a go over week end. |