http://www.perlmonks.org?node_id=922338


in reply to Setting single cookie with a separator

Never store a password inside a cookie!

All you need in the cookie is a unique session id. Use this id to access associated data on the server.