Was this page helpful?

NewSetCookie Method

    NewSetCookie(string name, string value, XUri uri)

    public static DreamCookie NewSetCookie(string name, string value, XUri uri);
    Create a new set cookie.

    Parameters

    Name Type Description
    name string Cookie name.
    value string Cookie value.
    uri XUri Cookie Uri.

    Returns

    Type: DreamCookie
    New cookie instance.

    NewSetCookie(string name, string value, XUri uri, DateTime expires)

    public static DreamCookie NewSetCookie(string name, string value, XUri uri, DateTime expires);
    Create a new set cookie.

    Parameters

    Name Type Description
    name string Cookie name.
    value string Cookie value.
    uri XUri Cookie Uri.
    expires DateTime Cookie expiration.

    Returns

    Type: DreamCookie
    New cookie instance.

    NewSetCookie(string name, string value, XUri uri, DateTime expires, bool secure, string comment, XUri commentUri)

    public static DreamCookie NewSetCookie(string name, string value, XUri uri, DateTime expires, bool secure, string comment, XUri commentUri);
    Create a new set cookie.

    Parameters

    Name Type Description
    name string Cookie name.
    value string Cookie value.
    uri XUri Cookie Uri.
    expires DateTime Cookie expiration.
    secure bool True if the cookie should only be used on https requests.
    comment string Comment.
    commentUri XUri Uri for comment.

    Returns

    Type: DreamCookie
    New cookie instance.

    NewSetCookie(string name, string value, XUri uri, DateTime expires, bool secure, string comment, XUri commentUri, bool httpOnly)

    public static DreamCookie NewSetCookie(string name, string value, XUri uri, DateTime expires, bool secure, string comment, XUri commentUri, bool httpOnly);
    Create a new set cookie.

    Parameters

    Name Type Description
    name string Cookie name.
    value string Cookie value.
    uri XUri Cookie Uri.
    expires DateTime Cookie expiration.
    secure bool True if the cookie should only be used on https requests.
    comment string Comment.
    commentUri XUri Uri for comment.
    httpOnly bool True if cookie is only accessible to the http transport, i.e. not client side scripts.

    Returns

    Type: DreamCookie
    New cookie instance.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by