If you want to use it alone, make sure your session key is valid in the cookie, adjust $session->start() yourself, and use $session->get('xxx') to get variables, do not use php There are native methods in it, and the Session class has encapsulated all of them.
sf2 encapsulates session, you don’t need to adjust session_start:
Update:
If you want to use it alone, make sure your session key is valid in the cookie, adjust $session->start() yourself, and use $session->get('xxx') to get variables, do not use php There are native methods in it, and the Session class has encapsulated all of them.
In Symfony, Session exists in the Request object. In the controller, write this:
However, the components in Symfony can be used alone. As the topic mentioned by the subject, they can be used alone in the ueditor editor:
Using Symfony components alone requires the use of autoload.