Single sign on implementation with two components using shiro and memcache.