2021-08-13, 08:09:04
(2019-05-08, 04:00:42)Fabmue Wrote: i just integrated feul into my page. the login works fine, but after every page reload (e.g. after hitting a link in the nav) i am logged out. i think there is an error with the session... any ideas? actually i want to be logged in till i hit the logout button or close the browser/tab.
I also beat my head against this issue but I don't believe it was specific to this plugin. My problem was that I was loading the session variables with complex objects preventing the session from saving.
My solution was to cast the username to a string.
Code:
$_SESSION['Username'] = (string)$userData->Username;
Other possible solution can be found here: https://stackoverflow.com/questions/19692157/session-variables-not-working-php