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 the difference between access specifiers and access modifiers in java? 16

0 Answers  


whether java is fully object oriented language or partially object oriented language

4 Answers   Infosys, ME, SMK,


How to prevent a field from serialization ?

2 Answers  


What are the different types of inner classes?

0 Answers  


What are the different types of constructor?

0 Answers  






Can we call virtual funciton in a constructor ?

0 Answers   XX,


What are the different types of multitasking?

0 Answers  


What is stack class in java?

0 Answers  


Can we sort a map in java?

0 Answers  


How is hashcode calculated in java?

0 Answers  


What are integer overflows and underflows and how to handle them?

3 Answers   Wipro,


What is substring in java?

0 Answers  


Categories