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

Is empty in java?

576


How can a gui component handle its own events in java programming?

523


Can a class be private?

507


Is array a class in java?

499


What are packages in java?

557






How many types of memory areas are allocated by JVM in java?

582


Can an interface implement another interface?

564


Is 0 an irrational number?

591


What is boolean strategy?

618


How can we make sure main() is the last thread to finish in java program?

662


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

579


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

511


Can a method be overloaded based on different return type but same argument type?

539


If try block is successfully executed, Then Is Finally block executed?

602


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

550