On Tue, 2003-09-02 at 00:13, James.Q.L wrote:
> --- Perrin Harkins <[EMAIL PROTECTED]> wrote:
> > Did you add code of your own to update the time column?
> > 
> 
> no.

Maybe you added the time column as an automatic timestamp column?  There
is no time column in the schema described in the Apache::Session
documentation.

> and from my phpmysql, you can see the time record.
> 
> id                               a_session         time     uname        test  
> 0543f2dc8dd196c5adeb29f18113f88d          20030901225218            00000000000000 

Is that a real column, or just a last-modified time that phpmysql adds
in somehow?

> and indeed as you said in record a_session it stores the session data. so if i 
> understand
> correctly, i don't add _new_ column to the sessions table, instead i call 
> $session{'username'} =
> 'username' which add it to the column a_session.

That's right.

> i know Apache::Session can't do session managerment directly. but i found out that 
> when a user
> session timeout, the record also gone automatically.is tied(%session)->delete; 
> delete the session?

Apache::Session has no concept of timeouts so it never deletes sessions,
but you can delete sessions manually with the delete method that you're
talking about.

By the way, you might find it easier to use CGI::Session.  It works fine
with mod_perl, and it directly supports things like timeouts.

- Perrin



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to