I want to attach secure attributes to cookies in Symphony3

Asked 1 years ago, Updated 1 years ago, 41 views

I can find articles about Symfony1 and Symfony2, but
We are developing the Symfony 3 series.
As per the title, I want to add a secure attribute to the cookie, but I don't know how to set it.
How should I set it up?

php

2022-09-30 21:34

1 Answers

I didn't know how to use it, but
Thank you for your advice.
I set "$secure" to "true" when I did new, similar to the following:

$cookie=new cookie($key,$data,$expire,$path,$domain,$secure,$httpOnly);


2022-09-30 21:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.