So if we worry about that we have to track it. This suggests to me
the following modification:
struct LedgerSMB::Session, {
id => '$',
token => '$',
dbclient => '$', # Pg type inet, connection of client connecting to Pg
type => '$', #type of session (web, etc)
auth_module => '$', #name of auth module
};
This could be subclassed for web interfaces by also adding a remote_addr field:
struct LedgerSMB::Session::Web, {
id => '$',
token => '$',
dbclient => '$', # Pg type inet, connection of client connecting to Pg
type => '$', #type of session (web, etc)
auth_module => '$', #name of auth module
remote_addr => '$', #type inet, remote address from web server perspective
};