diff -Nrua maia-1.0.2a/xlogin.php maia-1.0.2a-loginlog/xlogin.php
--- maia-1.0.2a/xlogin.php	2007-07-06 17:30:43.000000000 -0400
+++ maia-1.0.2a-loginlog/xlogin.php	2008-02-29 14:06:42.000000000 -0500
@@ -189,6 +189,13 @@
    }
    if ($authenticated === true)
    {
+       $my_file = "/tmp/maia_logins";
+       $ip = $_SERVER['REMOTE_ADDR'];
+       $sid = session_id();
+       $fh = fopen($my_file, 'a') or die("cannot open file $my_file");
+       fwrite($fh,date('Y-m-d H:i:s')." $user_name $ip $sid\n");
+       fclose($fh);
+
        session_start();
 
        // See if this user has an entry in the users table yet
