Re: Maintain variables states
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Maintain variables states

From: Jubeh <sjubeh@gmail.com>
Date: Tue Mar 07 2006 - 19:39:52 CET

I solved this problem by using the following code

set sess 12345 #sess is a random number
namespace eval [set sess] { } #create name space this number
set [set sess]::x 5 #assign value to the session
put $x
put [expr $[set sess]::x]

I do not know how much this code is good but, another function should
used with this code to unset the variables, suppose you have 10 users
with 5 variables in a form that's mean 50 variables.

Session lib. in tclhttpd server are not complete , they only creates
random numbers ...
Received on Sun Apr 30 02:26:14 2006