Does csrf token change?



Does csrf token change?..

Answer / Avadesh Yadav

Yes, a Cross-Site Request Forgery (CSRF) token should be unique for each user session and changed periodically to ensure its freshness. This helps prevent attacks where an attacker reuses an old CSRF token to perform unauthorized actions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is form validation in php?

1 Answers  


Can php replace javascript?

1 Answers  


How can a cross-site scripting attack be prevented by php?

1 Answers  


What is the difference between characters  and #?

1 Answers  


How do I run a php file?

1 Answers  


What is php.ini & .htacess file?

1 Answers  


List out some tools through which we can draw E-R diagrams for mysql?

6 Answers  


How to create a text file in PHP?

1 Answers  


Why many companies are switching their current business language to php? Where php basically used?

1 Answers  


Is server side a session?

1 Answers  


Tell me what are the functions to be used to get the image's properties (size, width and height)?

1 Answers  


What is the difference between array_merge() and array_merge_recursive() in php?

1 Answers  


Categories