I've got an existing user authentication system that I'm trying to integrate. I'm testing the following config:
if (isset($_SESSION['valid'])){
$params["nick"] = $_SESSION['user'];
}
Which works fine if the session exists at the time pfc loads. However if the session doesn't exist pfc asks for a username. If provide a username (say X) and some time after log into the CMS pfc, keeps the previous nick (X) even thought the page reloaded and $_SESSION['valid'] was set.
I guess I need to flush pfc sessions when loging in with the CMS. Any suggestions?
Thanks