GetSimple Support Forum
Does cookie_check() work in GetSimple 3.0? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Does cookie_check() work in GetSimple 3.0? (/showthread.php?tid=1854)



Does cookie_check() work in GetSimple 3.0? - sal - 2011-06-16

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.

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.


Does cookie_check() work in GetSimple 3.0? - mvlcek - 2011-06-16

sal Wrote: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.

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.

The sitewide cookie functionality is broken in GS 3.0 (see here).
See the Wiki for a workaround.