Examveda
Examveda

An attacker somehow obtains an unsuspecting user’s SID and then using it to impersonate the user inorder to gain potentially sensitive information. This attack is known as.

A. session-fixation

B. session-fixing

C. session-hijack

D. session-copy

Answer: Option A

Solution(By Examveda Team)

You can minimize this risk by regenerating the session ID on each request while maintaining the session-specified data. PHP offers a convenient function named session_regenerate_id() that will replace the existing ID with a new one.

This Question Belongs to PHP >> HTML Forms Handling

Join The Discussion

Related Questions on HTML Forms Handling