How to validate the request (Eg:user name and password) in
session(http session)? not in LDAP server ?

Answer Posted / hasan ul huzaibi

You can Use a HashMap to put all user objects into into it
and put this hashmap into session and whenever required get
HashMap from session and get object with key as user name
and then validate it against login
details...hasanulhuzaibi@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a protected void?

506


What is the java virtual machine?

584


What is anagram of a string?

519


How do you create a null object?

512


What does indexof return in java?

537






What is hasnext in java?

580


Can we have multiple catch block for a try block?

588


What is string pool?

629


Define class?

518


What is the purpose of encapsulation?

544


What is lifetime variable?

525


Define how destructors are defined in java?

590


Can a string be null?

544


Can we declare a constructor as final?

676


What is return null in java?

512