Added Cookie based security support.