Skip to content
Advertisement

Tag: session

Setting a session in steps

Is it possible to set multiple session elements to the same session at different times? I have 2 classes and each class should set 2 session elements. What I’m getting back is an empty array. I am …

Can’t login with Symfony Guard, maybe because of cookies & multidomain

I need a very simple form login, so I’m using a Symfony Guard authenticator for this. My application is multi-domain, for now login is possible on only 3 of them (and 2 are subdomains). But I can’t log in on any of them. First, here are some resources: The authenticator: FormLoginAuthenticator.php My security configuration: [https://gist.github.com/Pierstoval/1e29a9badab1cba03e45a306aa658c83#file-security-yaml) And in case it’s needed,

Passing variables to another page with url – PHP

I want to execute some PHP code by clicking on a link and Passing variables to another page with url Pleas help me. Such WordPress Site: https://www.armandl.com/?p=5123 Answer You set $_SESSION[‘status’] to 0 and then set it to 1, so it will always be 1. Additionally, the link you click has nothing to do with the session vars. Page 1:

logged user does not have all fields filled up

I’m using Symfony 2.8 and Doctrine and I have security.yml configured to point to the User class which implements UserInterface. My ORM schema is in YAML. The problem: In database the user has also specified “email” field, Symfony for LOGGED USER is not filling up that field and also “password” field is empty. When I do $this->get(‘doctrine.orm.entity_manager’)->clear(User::class); then the entity

Advertisement