Hi,

I am tryin to store the time a user logged in into a session. However everytime the user logged out, the time stored is the logged out time. Can someone advise me how i should done it in order to store the time the user logged in?

Thanks

$date = date('Y-m-d H:i:s');

u dont make sense. u set the session variable to be the log in time akak $_SESSION[thetimeverthing] = time();
the log out thing makes no sense.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.