Define Session Hijacking »



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 attacker [...]

Difference between session.save() , session.saveOrUpdate() and session.persist() »



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 data.
–> session.persist() : Does [...]

Difference between session.save() and session.saveOrUpdate() »



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

Difference between session.save() and session.saveOrUpdate() »



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