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

Can you change array size in java?

0 Answers  


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

0 Answers  


What restrictions are placed on method overloading in java programming?

0 Answers  


Is java call by reference?

0 Answers  


What are the Memory Allocations available in JavaJava?

1 Answers  


What is natural ordering in java?

0 Answers  


Can you run java program without main method?

0 Answers  


Name few java util classes introduced with java 8 ?

0 Answers  


What is json parser in java?

0 Answers  


What is the GregorianCalendar class?

2 Answers   HCL,


Java does not support multiple inheritance. how interface helps in the same?

5 Answers   TCS,


What is the difference between object oriented programming language and object based programming language?

0 Answers  


Categories