Set a Cookie:
You can set a cookie by specifying the Cookie name, its value and expiration date if any. You will be able to read a cookie without closing the current session
If the expire is set for a cookie, cookie gets updated automatically in the cookie's file once you exit the browser. You will be able to later on read the cookie until it gets expired.