I’m sure this is a case of me being an idiot, but I’m at a loss.
I followed these instructions to create a logout button:
Logging out works (if I refresh the page, I go to the login page because I’m not longer authenticated), but the user isn’t redirected to the login.html page. It appears that nothing happens. (but again, logging out does work).
I currently have the logout button in a header/site include, but the same thing happens when I add a button to the main page.
Here’s the code of the header and logout button (the header is a .php, and the main page is a .php).
Okay, I have debug enabled and see the 500 internal error, this means it’s a server side thing even though it technically does log me out. I’ll look into that.
message: "strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone."
This issue happens when a default time zone isn’t set in php.ini
You can add date.timezone 'Region/Zone' directly in php.ini file, here is a list of the valid timezones in PHP: PHP: List of Supported Timezones - Manual
Thanks again for the quick help. This is my second problem that’s been related to insufficient setup on my webserver (though I did learn about debugging this time!).
You guys are awesome!
Edit: Setting the timezone definitely resolved the issue. Thanks again, very happy I purchased this product (for both it’s capabilities and the support that’s provided)