Cookies

Added cookie support for keeping sessions alive