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 arraylist contain null values?

0 Answers  


public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }

0 Answers  


How to pass arraylist to stored procedure in java?

0 Answers  


What is unmodifiable list in java?

0 Answers  


Difference between a MenuItem and a CheckboxMenuItem?

1 Answers  






Explain jvm, jre, and jdk?

0 Answers  


Explain JMS in detail.

0 Answers   Amdocs,


What is the main difference between java platform and other platforms?

0 Answers  


What is the use of parseint in java?

0 Answers  


What is floor math?

0 Answers  


Explain the difference between abstract class and interface in java?

0 Answers  


Write a program to print fibonacci series

0 Answers  


Categories