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



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

Answer / 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

More Core Java Interview Questions

What is finalize()? Is finalize() similar to a destructor?

0 Answers  


What is preparedstatement in java?

0 Answers  


what is difference between abstract factory and factory design patterns?

0 Answers  


How do you sort in descending order in java using collections sort?

0 Answers  


Can you make a constructor final?

0 Answers  






How use .contains in java?

0 Answers  


What is the difference between synchronized and synchronized block?

0 Answers  


Does substring start with 0?

0 Answers  


what is web.xml?and its use?

7 Answers   CTS,


How would overload a function based on return type?

0 Answers   Genpact,


If a multi threaded Java program has started numerous number of threads, at any point in time how to know which thread is currently executing/running ?

7 Answers   Accenture, College School Exams Tests, iFlex, NIIT,


Can we extend private class in java?

0 Answers  


Categories