On 16 Dec 2000, David N. Welton wrote:
> > The php4 API is really simple and easy to use. When you want a
> > session variable, yout just have to register it using the function
> > session_register(variable_name). After that you can use the variable
> > like any other variable. It's automatically made persistent
> > throughout the session.
> Ok, regarding the actual details of implementing this - anyone know
> how they do it?  How they define a session?  How do they actually keep
> the variables around from one page to the next?

I don't know exactly how they do it, but I'd store all session variables
as one string with [array get] - a bit stupid but works for me :). Then
you could "attach" sessions to users (with sql or something in dtcl) as
well as send them by cookies. You could use session-version or something
to check which is the newest - cookie or user data...

Actually, if anyone needs this feature: this could be written in tcl
(no C code) at start. but the problem is - it would require sql support
... and then there's the most famous problem - mysql vs postgres [or
oracle/sybase/...]. The cookie part is much simplier.

And I agree that having a very good session support (with
cookie+authorization :) would be a great feature.

Wojciech Kocjan
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to