Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
MAKE_COOKIE - Neowebscript
Synopsis * Description

Emit header to create a cookie

Synopsis

  • make_cookie cookieName cookieValue [-days expireInDays] [-hours expireInHours] [-minutes expireInMinures] [-path urlPathCookieAppliesTo] [-domainCookieAppliesTo] [-secure 1|0]

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.

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved