set command_format_procs "/neowebscript/commands/command_include.nws" load_virtual $command_format_procs ############################## # # # Begin variables - start editing with new info # # ############################## set command_name "make_cookie" set title_name "MAKE_COOKIE" set package_name "Neowebscript" set short_description "Emit header to create a cookie" set synopsis {
  • make_cookie cookieName cookieValue [-days expireInDays] [-hours expireInHours] [-minutes expireInMinures] [-path urlPathCookieAppliesTo] [-domainCookieAppliesTo] [-secure 1|0] } set description { Set http header to create a cookie which, if emitted to a browser that is cookie-capable, will cause the cookie to be included subject to defined restrictions.

    Example: make_cookie email karl@neosoft.com -days 30 -path /myApp

    Create a cookie named email containing karl@neosoft.com that will be included in all HTTP requests from the browser we´re responding to, for a period of 30 days, when the requests are underneath/myApp on this server, and the browser is cookie-enabled.

    For more information, see Persistent Client State HTTP Cookies at Netscape, and also Which Browsers Support Cookies at Digital.

    This only works if it´s emitted before any HTML. } ############################## # # # End variables - do not edit past this point # # ############################## emit_command_page