http://dl.zoro2.org/session.tgz - this is a small mySQL tcl-sql wrapper
and sessions stuff
Here's the code but I'm not sure if you'll understand it if you're not a
good programmer.
The easiest way to do sessions is as follows: (no
<?
array set session $COOKIES(session)
# do some stuff like:
if {![info exists session(cnt)]} {
set cnt 0
}
incr cnt
headers setcookie -name session -value [array get session]
?>
This one is a simple way to store an array on client's machine. The
problems are:
1/ you cannot rely on data sent to you from the client (server-side
sessions are a bit safer on that)
2/ cookies have a size limit of something under 4096 bytes - so you
cannot store too much data :(
But this is how I started and still do it for smaller projects - like
simple forms with last-entered values stored in a cookie.
--
WK
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]