I created a remember me cookie, containing userid (encrypted and in HTTPS).
Everything works. Now I am worried that if someone copies cookie from one computer to another (other person has access to the first computer) and use the same browser it will log in as that user. How do you overcome that security hole?.
Maybe I am not understanding the mechanics well. I googled but can't find a good solution approach, everything I red points to this is a security issue.
Is there an attribute of the original machine/browser that I can use to make the cookie value? (I know I can't get MAC address from JS, may there there are other variables that I don't know about)
Ref from Previous threads: How do I prevent session hijacking by simply copy a cookie from machine to another?
Thank you