Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does cookie_check() work in GetSimple 3.0?
#1
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.
Modern UI Admin for GetSimple
Watch the demo. Install this plugin. Use this CSS. Enjoy.
Reply
#2
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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply




Users browsing this thread: 1 Guest(s)