fixed reading and writing of cookie data.  Added event for updating user information