HighFlyerPL185 Posted January 21, 2013 Report 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
rpalmer800 Posted January 21, 2013 Report Posted January 21, 2013 Try This... <?php echo Auth::$userinfo->lastlogin;?> 1 Quote
HighFlyerPL185 Posted January 21, 2013 Author Report 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
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.