You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by da...@apache.org on 2002/03/14 22:40:40 UTC

cvs commit: tcl-rivet/rivet/rivet-tcl cookie.tcl

damonc      02/03/14 13:40:40

  Modified:    rivet/rivet-tcl cookie.tcl
  Log:
  Added delete option to 'cookie' command.
  
  Revision  Changes    Path
  1.2       +6 -0      tcl-rivet/rivet/rivet-tcl/cookie.tcl
  
  Index: cookie.tcl
  ===================================================================
  RCS file: /home/cvs/tcl-rivet/rivet/rivet-tcl/cookie.tcl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cookie.tcl	14 Mar 2002 21:17:22 -0000	1.1
  +++ cookie.tcl	14 Mar 2002 21:40:40 -0000	1.2
  @@ -72,5 +72,11 @@
   	    if {![info exists RivetCookies($name)]} { return }
   	    return $RivetCookies($name)
   	}
  +
  +	"delete" {
  +	    ## In order to delete a cookie, we just need to set a cookie
  +	    ## with a time that has already expired.
  +	    cookie set $name "" -minutes -1
  +	}
       }
   }
  
  
  

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