BasisCore

Related Topics

  • Overview
  • Release Note
  • Tutorials
  • Fundamentals
    • Commands
      • Remarks
      • Commands Type
      • Basic Concepts
      • Related Topics
        • CommandBase Class
        • Renderable Commands
        • Source Commands
        • Collection Commands
        • Management Commands
        • Expression
        • [## Notation
        • Data Binding
        • Built-in Commands
    • Host
BasisCore
  • Docs »
  • Fundamentals »
  • Commands »
  • Management Commands »
  • Cookie Command
  • View page source

Cookie Command¶

Use for manage, add or remove cookie to response.

Note

The cookie command inherit from CommandBase Class.

Important

The cookie command present as void command and don’t have any child elements. name attribute in cookie command is required and must be set.

structure of cookie command¶
1
<basis core="cookie" value="" max-age="" path="" />

Attributes¶

value string required [##-notation

Determine value of cookie.

max-age string optional [##-notation

Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. Default value for max-age is null.

path string optional [##-notation

A path that must exist in the requested URL, or the browser won’t send the Cookie header. Default value for path is null.

Note

For see more Information about [##-notation,see [## Notation

Tip

For more information about cookie concept, visit MDN-Cookie.

Next Previous

© Copyright 2020, Manzoomeh.ir

Built with Sphinx using a theme provided by Read the Docs.