How to show in user login page that user is already loged in??

set a session value, with appropriate timeouts for inactivity

<?php If (!isset($_session['loggedin'])) {
 /* the login form goes here */ 
} 
else { 
/* the "hello user how's the wife and kids" goes here */ 
} ?>

set a cookie value to remember login details

just a possiblity

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.