Fixed tag session function.