Is it more secure to use cookies to transfer session ids?
Answer / Mubarak Hussain
Using cookies for transferring session IDs is considered relatively safe if you properly implement HTTP-only, Secure and SameSite attributes. However, it's essential to follow security best practices such as setting a session time-out, using a secure connection (HTTPS), and protecting against Cross-Site Scripting (XSS) attacks.nnHere's an example of how to set HttpOnly and Secure flags in PHP:nn```phpnsession_set_cookie_params(60 * 60, '/', '.', 'localhost', true, true);nsession_start();``
| Is This Answer Correct ? | 0 Yes | 0 No |
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
what is view?
Who is the father of PHP and explain the changes in PHP versions?
2 Answers Rushmore Consultancy,
What is the PHP predefined variable that tells the What types of images that PHP supports?
Which is faster for or foreach php?
This is regarding file uploading. 1. Who will be the owner of the uploaded file ? 2. What permission you will give for an uploaded file ? 3. What is mean by user, group and others and what kind of permission you will give for each user and explain the reason?
how will i set pagination ?
How long does a session last in php?
What is difference between put and post method in http?
Explain Type hinting in PHP?
What are the __construct() and __destruct() methods in a php class?
What are php loops?