Added support for cookies and flash variables.
Flash variables are stored in the session, and remain there until you access them. After flash variable is accessed, they are removed from the session (they wont exists on next request).