Hi, I want to provide a main page with a login/logout button. When the user logs in (what isn't necessary for the main page) I want to show his name one the page.
Login works fine whren pressing the button and linking to \profile \login. After login the user returns to the main page and I don't get a security token to show the username. $security->getToken() in GlobalVariables.php is <uninitialized>. The session contains a _security_profile where the username and password are stored but I don't know how to unserialize it. Can anyone help and show how to configure the security.yml? Thanks Peter This is my security.yml login: pattern: ^/profile/login$ security: false profile: pattern: ^/profile/ form_login: check_path: /profile/login_check login_path: /profile/login use_referer: true logout: path: /profile/logout target: / main: pattern: ^/ security: false (also tried anonymous: true, also didn't work) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en