I have built a custom built site in Codeigniter.

I have added a [] Remember Me check box to my sign in form.

I want the browser to remember the users details and keep them logged in for 1 week if they select that option.

I understand that using cookies can cause some security threats.

Can anyone offer any advice on how i should go about setting this up, thanks in advance for your help...