Adding check on sesssion path for memcache handling