Subjects

All subjects Django Java Python React Spring Boot JavaScript PHP
Sign Up Free
Interview question

What is session hijacking and how do you prevent it? Session hijacking को कैसे रोकें?

Answer

Session hijacking is when an attacker steals a valid session ID. Prevent by using HTTPS, httponly flag, and regenerating IDs on login.

Attack vectorPrevention
Network interceptionUse HTTPS with secure flag
XSSSet httponly flag

Session hijacking तब होता है जब attacker session ID चोरी करता है। HTTPS, httponly, और regeneration से रोकें।

AttackPrevention
Network interceptionHTTPS use करें
XSShttponly flag लगाएं

Was this answer clear?