Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple Login validation...

 
senthil narayan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say user calles "James" Logged in and till he logs out i should not allow him to enter with the same name "James"...
URGENT.
THANKS...
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Narayan,
Try this.. in your validate.jsp page
if(onlineUser.containsKey(usrId.toLowerCase())){
response.sendRedirect("/abc/Login.jsp?Flag=invalid");
return;
}
usrId get from Login.jsp page.
in Login page write
<%
} else if(flag.equals("invalid")){
%>
Invalid Session, User Alredy Loged In
<%
}
%>
S. Oza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!