Cookie stuff added, along with ehcache impl