HighFlyerPL185 Posted January 21, 2013 Report Share Posted January 21, 2013 Hi there, I discovered from the database that you can echo the date and the time of the last login from the phpvms_sessions table. I am not too experienced on PHP, and I am wondering how the $session_id variable works? I have this code, but it doesn't return anything. <tr> <td class="main1_1">Last Login Date</td> <td class="main2_1"><?php echo Auth::$session_id->logintime; ?></td> </tr> Quote Link to comment Share on other sites More sharing options...
rpalmer800 Posted January 21, 2013 Report Share Posted January 21, 2013 Try This... <?php echo Auth::$userinfo->lastlogin;?> 1 Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted January 21, 2013 Author Report Share Posted January 21, 2013 Try This... <?php echo Auth::$userinfo->lastlogin;?> It works, but it doesn't display the time like in logintime, but I'm sure this will do fine Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.