added cookie session tracking