X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=htdocs%2Fdocs%2Fman%2FFS%2Fsession.html;fp=htdocs%2Fdocs%2Fman%2FFS%2Fsession.html;h=c714337be625503af54d49ff20b87765bb94836e;hp=0000000000000000000000000000000000000000;hb=35227000d6222f35ec49bc4226e94200b77abc4f;hpb=f3235d39d083518d47f21cd5585e5f9a13070763 diff --git a/htdocs/docs/man/FS/session.html b/htdocs/docs/man/FS/session.html new file mode 100644 index 000000000..c714337be --- /dev/null +++ b/htdocs/docs/man/FS/session.html @@ -0,0 +1,129 @@ + +
++
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.1 2001-04-23 12:41:57 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.
+ + + +