LJ::get_remote — authenticates the user at the remote end based on their cookies and returns a hashref representing them
LJ::get_remote(dbarg, criterr, cgi);
dbarg. Deprecated; a master database handle ($dbh) or a master/slave set of database handles ($dbs).
criterr. scalar ref to set critical error flag. if set, caller should stop processing whatever it's doing and complain about an invalid login with a link to the logout page.
cgi. Optional CGI.pm reference if using in a script which already uses CGI.pm.
hashref containing 'user' and 'userid' if valid user, else undef.