# Authentication with Cookies instead of CookieStore Sessions

**URL:** <https://www.ruby-forum.com/t/authentication-with-cookies-instead-of-cookiestore-sessions/176171>\
**Category:** Rails\
**Created:** [September 25, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/authentication-with-cookies-instead-of-cookiestore-sessions/176171 "2009-09-25T19:35:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![collimarco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecb155/32.png) [@collimarco](https://www.ruby-forum.com/u/collimarco)\
**Post date:** [September 25, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/authentication-with-cookies-instead-of-cookiestore-sessions/176171/1 "2009-09-25T19:35:03Z")

</div>

I would like to persist the user authentication between user sessions  
(basically a “remind me” by default).

Sessions expire while cookies persist: why should I use a session for  
authentication and then another different cookie for the “remind me”?

Can’t I simply store a cookie whith a token and use it for both  
authentication and persistence?
