By Ramakrishna on Sep 20, 2008 in Session Interview Questions | 0 Comments
Question: What is session hijacking? Answer: If you application is not very secure then it is possible to get the access of system after acquiring or generating the authentication information. Session hijacking refers to the act of taking control of a user session after successfully obtaining or generating an authentication session ID. It involves an [...]
By Ramakrishna on Sep 20, 2008 in Session Interview Questions | 0 Comments
Q) Difference between session.save() , session.saveOrUpdate() and session.persist()? A) –> session.save() : Save does an insert and will fail if the primary key is already persistent. –> session.saveOrUpdate() : saveOrUpdate does a select first to determine if it needs to do an insert or an update. Insert data if primary key not exist otherwise update [...]
By Ramakrishna on Sep 20, 2008 in Session Interview Questions | 0 Comments
Difference between session.save() and session.saveOrUpdate()? session.save() – Insert data into the table session.saveOrUpdate()- Insert data if primary key not exist otherwise update
By Ramakrishna on Sep 20, 2008 in Session Interview Questions | 0 Comments
Q) Difference between session.save() and session.saveOrUpdate()? A) session.save() – Insert data into the table session.saveOrUpdate()- Insert data if primary key not exist otherwise update