Session propogation code refractored.
session signout fixed.
logging updated