You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-user@tcl.apache.org by ronald s chong <rc...@umich.edu> on 2003/06/04 21:32:37 UTC

setting cookies

hi there:

how do i set cookies in rivet?  i see how to load them, but nothing 
to get them.  i'm converting some code previously written in cgi.tcl, 
so all i had to do was "cgi_import_cookie <var>".  is there something 
equivalent? thanks.

-ron


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-user-help@tcl.apache.org


Re: setting cookies

Posted by Damon Courtney <da...@your.unreality.com>.
    Actually, there is a cookie command that is made to handle cookies.
It's used like this:

cookie set CookieName Value
cookie get CookieName
cookie delete CookieName

    You can load all cookies available into an array with the load_cookies
command.  Example:

load_cookies

Loads all cookies into an array called cookies.

load_cookies myCookies

Loads all cookies into an array called myCookies.

    The "cookie get" command actually calls load_cookies and then just
peaks into that array for the one cookie you're looking for.  It's
mostly there for convenience and to make the cookie command feel
complete. 0-]

Damon

> hi there:
> 
> how do i set cookies in rivet?  i see how to load them, but nothing
> to get them.  i'm converting some code previously written in cgi.tcl,
> so all i had to do was "cgi_import_cookie <var>".  is there something
> equivalent? thanks.
> 
> -ron
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: rivet-user-unsubscribe@tcl.apache.org
> For additional commands, e-mail: rivet-user-help@tcl.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-user-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-user-help@tcl.apache.org