updated uri detection, added md5 signature to cookie sessiosn