Hello,
Not sure if this is easily achieved, but I’m using a PHP login script (based on sessions) that I created.
I want to add two session variables which contains the time a user logged in and the date.
For the date syntax we wanted to use something like: 21/04/2005
For the time syntax: 14:34:33
and then be able to echo each out – so for example two variables ‘LOGINDATE’ and ‘LOGINTIME’
I’ve tried all various forms of using date() but after about a minute I just get figures like 2893292… how else can I do this please?
We are not using any form of database for the login script, the actual logins are in our ‘login.php’ encrypted as MD5 hashes for the passwords.
[code=php]
$_SESSION[‘SESSIONDATE’] = ..;
$_SESSION[‘SESSIONTIME’] = ..;
Any help on this would be very much appreciated.
Thank you.