»

LJ::get_remote

LJ::get_remote — authenticates the user at the remote end based on their cookies and returns a hashref representing them

Use

LJ::get_remote(dbarg, criterr, cgi);

Arguments

  • 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.

Source:

cgi-bin/ljlib.pl

Returns:

hashref containing 'user' and 'userid' if valid user, else undef.