2011-06-16, 13:18:37
Does cookie_check() work in GetSimple 3.0, or at least how I think it should?
For example's sake, the following if used in a template doesn't work as expected.
It always ends up saying "You're not logged in." whether logged into the back-end or not. Also, GSCOOKIEISSITEWIDE is set to TRUE as is GSDEBUG in gsconfig.php and the website health check is all in the green.
For example's sake, the following if used in a template doesn't work as expected.
Code:
<?php
if (!function_exists('cookie_check')) { include('admin/inc/cookie_functions.php'); }
echo (cookie_check()) ? "<p>You're logged in.</p>" : "<p>You're not logged in.</p>";
?>
It always ends up saying "You're not logged in." whether logged into the back-end or not. Also, GSCOOKIEISSITEWIDE is set to TRUE as is GSDEBUG in gsconfig.php and the website health check is all in the green.