How do you implement this in CodeIgniter?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(This answer was a response to the original question)
Extending the expiration of a session cookie isn’t going to work for a ‘remember me’ feature, since the user will lose their session cookie when they close the browser. If Code Igniter doesn’t have a native ‘remember feature’, then you’ll need to write something to drop a long-life cookie which contains information which will allow an automatic login when the server sees it again.
There’s a good article on Persistent Login Cookie Best Practice, which can be summarized as:
Another article which builds more security onto those ideas in Improved Persistent Login Cookie Best Practice
If you follow the practices in those articles, you won’t go far wrong!