/// <summary> /// Returns the UserStae object as string /// </summary> /// <param name="us"></param> /// <returns></returns> private string GetValue4Cookie(UserState us) { string str; str = Serialization.BinSerialise(us); //str = Encryption.Encrypt(str); return(str); }