Move away from storing username and password in a cookie for authentication and use an authentication token with a set expiration time.
Move away from storing username and password in a cookie for authentication and use an authentication token with a set expiration time.