Updated cookie code samples