How to store username and password in cookie

How can I store a username nad password in a cookie once user log in using sesssion authentication…

and how can i retrive it later to bypass the session authentication…

Subject: How to store username and password in cookie

http://www.codestore.info/store.nsf/unid/BLOG-20050302?OpenDocumenthttp://www.codestore.info/store.nsf/unid/BLOG-20050304?OpenDocument