How are cookies handled?
Cookies are not persistent across calls. In other words they are not stored on the disk. Remember that every call to an application gets its own copy of the interpreter. When the interpreter gets Set Cookie headers in a response, it reads the cookie and stores the cookie in memory. Those cookies are then included in subsequent HTTP requests to that server. But all this is done for one single call. As soon as a call ends, that copy of the interpreter and its corresponding memory are cleared away. thus, the cookies are no longer in memory and are lost. Consequently, you can only do cookie-based session management on a per-call basis.