Sessions and cookies security and overhead
<p>I have a log in system where a user can check the "Remember me" option. When the user checks that option, I store the session_id into a cookie and write his session_id, ip, browser info, etc into a database session table. So when the user comes back, I make sure the cookie has not been faked based on session_id/ip/browser/etc that is stored in the session table.</p>

<p>Now that seems like it might be a lot of overhead and db writing. Is there a better and secure way to do it without so much overhead?</p>
