views:

123

answers:

1

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?

A: 

Here are some links explaining why using cookies for authentication is bad from security viewpoint:

DVK
These links doesn't really respond to my question... use a "remind me" still seems to dissolve any advantage that the use of sessions may have brought! Security of a site that uses a reminder and a site that use a cookie for the whole process of authentication have the same level of security: am I wrong?
collimarco