Documented cookie handling

Added small documentation for cookie handling