You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@tcl.apache.org by ro...@apache.org on 2002/07/29 23:30:17 UTC

cvs commit: tcl-site/websh/examples cookie.html cookie.ws3 cookie_ws3.txt memory.html memory.ws3 memory_ws3.txt

ronnie      2002/07/29 14:30:17

  Modified:    websh/examples cookie.html cookie.ws3 cookie_ws3.txt
                        memory.html memory.ws3 memory_ws3.txt
  Log:
  - cleanup state after request to prevent session crosstalk
  
  Revision  Changes    Path
  1.2       +3 -0      tcl-site/websh/examples/cookie.html
  
  Index: cookie.html
  ===================================================================
  RCS file: /home/cvs/tcl-site/websh/examples/cookie.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cookie.html	9 Jul 2002 06:54:53 -0000	1.1
  +++ cookie.html	29 Jul 2002 21:30:16 -0000	1.2
  @@ -86,6 +86,9 @@
   
   <I><FONT COLOR="#B22222"># dispatch
   </FONT></I>web::dispatch
  +
  +<I><FONT COLOR="#B22222"># cleanup context after request (to prevent session crosstalk)
  +</FONT></I>state::delete
   </PRE>
   <HR>
   <ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU enscript 1.6.3</A>.</ADDRESS>
  
  
  
  1.2       +3 -0      tcl-site/websh/examples/cookie.ws3
  
  Index: cookie.ws3
  ===================================================================
  RCS file: /home/cvs/tcl-site/websh/examples/cookie.ws3,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cookie.ws3	20 Jun 2002 17:37:32 -0000	1.1
  +++ cookie.ws3	29 Jul 2002 21:30:16 -0000	1.2
  @@ -75,3 +75,6 @@
   
   # dispatch
   web::dispatch
  +
  +# cleanup context after request (to prevent session crosstalk)
  +state::delete
  
  
  
  1.2       +3 -0      tcl-site/websh/examples/cookie_ws3.txt
  
  Index: cookie_ws3.txt
  ===================================================================
  RCS file: /home/cvs/tcl-site/websh/examples/cookie_ws3.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cookie_ws3.txt	9 Jul 2002 07:09:49 -0000	1.1
  +++ cookie_ws3.txt	29 Jul 2002 21:30:16 -0000	1.2
  @@ -75,3 +75,6 @@
   
   # dispatch
   web::dispatch
  +
  +# cleanup context after request (to prevent session crosstalk)
  +state::delete
  
  
  
  1.4       +7 -6      tcl-site/websh/examples/memory.html
  
  Index: memory.html
  ===================================================================
  RCS file: /home/cvs/tcl-site/websh/examples/memory.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- memory.html	24 Jul 2002 14:25:35 -0000	1.3
  +++ memory.html	29 Jul 2002 21:30:16 -0000	1.4
  @@ -34,9 +34,9 @@
   </FONT></I><I><FONT COLOR="#B22222">#
   </FONT></I>
   <I><FONT COLOR="#B22222"># turn logging on
  -</FONT></I>web::logfilter add memory.-debug
  -web::logdest add memory.-debug <B><FONT COLOR="#A020F0">file</FONT></B> [<B><FONT COLOR="#A020F0">file</FONT></B> <B><FONT COLOR="#A020F0">join</FONT></B> / tmp memory.log]
  -
  +</FONT></I><I><FONT COLOR="#B22222">#web::logfilter add memory.-debug
  +</FONT></I><I><FONT COLOR="#B22222">#web::logdest add memory.-debug file [file join / tmp memory.log]
  +</FONT></I>
   <I><FONT COLOR="#B22222"># config: map level number to X-Y dimensions
   </FONT></I><B><FONT COLOR="#A020F0">set</FONT></B> _levels(1) [<B><FONT COLOR="#A020F0">list</FONT></B> 1 2]
   <B><FONT COLOR="#A020F0">set</FONT></B> _levels(2) [<B><FONT COLOR="#A020F0">list</FONT></B> 1 4]
  @@ -612,9 +612,10 @@
   </FONT></I><I><FONT COLOR="#B22222"># also, we use -hook to execute code just before web::dispatch will
   </FONT></I><I><FONT COLOR="#B22222"># call the web::command command. Here, we set the default level to 5
   </FONT></I><I><FONT COLOR="#B22222"># if it is not yet known.
  -</FONT></I>web::dispatch -track [<B><FONT COLOR="#A020F0">list</FONT></B> l c r] -hook {
  -    web::cmdurlcfg -<B><FONT COLOR="#A020F0">set</FONT></B> l [web::cmdurlcfg l 5]
  -}
  +</FONT></I>web::dispatch -track [<B><FONT COLOR="#A020F0">list</FONT></B> l c r] -hook {web::cmdurlcfg -<B><FONT COLOR="#A020F0">set</FONT></B> l [web::cmdurlcfg l 5]}
  +
  +<I><FONT COLOR="#B22222"># cleanup context after the request (prevent session crosstalk)
  +</FONT></I>mctx::delete
   </PRE>
   <HR>
   <ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU enscript 1.6.3</A>.</ADDRESS>
  
  
  
  1.5       +6 -5      tcl-site/websh/examples/memory.ws3
  
  Index: memory.ws3
  ===================================================================
  RCS file: /home/cvs/tcl-site/websh/examples/memory.ws3,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- memory.ws3	23 Jul 2002 09:20:13 -0000	1.4
  +++ memory.ws3	29 Jul 2002 21:30:16 -0000	1.5
  @@ -23,8 +23,8 @@
   #
   
   # turn logging on
  -web::logfilter add memory.-debug
  -web::logdest add memory.-debug file [file join / tmp memory.log]
  +#web::logfilter add memory.-debug
  +#web::logdest add memory.-debug file [file join / tmp memory.log]
   
   # config: map level number to X-Y dimensions
   set _levels(1) [list 1 2]
  @@ -601,6 +601,7 @@
   # also, we use -hook to execute code just before web::dispatch will
   # call the web::command command. Here, we set the default level to 5
   # if it is not yet known.
  -web::dispatch -track [list l c r] -hook {
  -    web::cmdurlcfg -set l [web::cmdurlcfg l 5]
  -}
  +web::dispatch -track [list l c r] -hook {web::cmdurlcfg -set l [web::cmdurlcfg l 5]}
  +
  +# cleanup context after the request (prevent session crosstalk)
  +mctx::delete
  
  
  
  1.4       +6 -5      tcl-site/websh/examples/memory_ws3.txt
  
  Index: memory_ws3.txt
  ===================================================================
  RCS file: /home/cvs/tcl-site/websh/examples/memory_ws3.txt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- memory_ws3.txt	23 Jul 2002 09:20:13 -0000	1.3
  +++ memory_ws3.txt	29 Jul 2002 21:30:16 -0000	1.4
  @@ -23,8 +23,8 @@
   #
   
   # turn logging on
  -web::logfilter add memory.-debug
  -web::logdest add memory.-debug file [file join / tmp memory.log]
  +#web::logfilter add memory.-debug
  +#web::logdest add memory.-debug file [file join / tmp memory.log]
   
   # config: map level number to X-Y dimensions
   set _levels(1) [list 1 2]
  @@ -601,6 +601,7 @@
   # also, we use -hook to execute code just before web::dispatch will
   # call the web::command command. Here, we set the default level to 5
   # if it is not yet known.
  -web::dispatch -track [list l c r] -hook {
  -    web::cmdurlcfg -set l [web::cmdurlcfg l 5]
  -}
  +web::dispatch -track [list l c r] -hook {web::cmdurlcfg -set l [web::cmdurlcfg l 5]}
  +
  +# cleanup context after the request (prevent session crosstalk)
  +mctx::delete
  
  
  

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