FS::session - Object methods for session records
use FS::session;
$record = new FS::session \%hash;
$record = new FS::session {
'portnum' => 1,
'svcnum' => 2,
'login' => $timestamp,
'logout' => $timestamp,
};
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
$error = $record->nas_heartbeat($timestamp);
An FS::session object represents an user login session. FS::session inherits from FS::Record. The following fields are currently supported:
Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the hash method.
$Id: session.html,v 1.3 2002-01-29 17:42:46 ivan Exp $
Maybe you shouldn't be able to insert a session if there's currently an open session on that port. Or maybe the open session on that port should be flagged as problematic? autoclosed? *sigh*
Hmm, sessions refer to current svc_acct records... probably need to constrain deletions to svc_acct records such that no svc_acct records are deleted which have a session (even if long-closed).
the FS::Record manpage, schema.html from the base documentation.