+ 3
How to avoid multiple login of user in same session....
in this problem user can only use there session at a single PC..single browser .
3 Answers
+ 2
Session session = request.getSession(false);
if session == null
session.invalidate()
session = request.getSession(true)
try this in your doPost method of the servlet when the user is logging in.
hope this helps
0
if (!isset($_SESSION['name'])){
header('location: login.php');
}else
{
$_SESSION['name'];
}
0
use HttpSessionBindingListener