Hello world,
Please I want to know how to get the logged-in user's session in a frontend page for use it in an external page.
Thank you in advance
Hello world,
Please I want to know how to get the logged-in user's session in a frontend page for use it in an external page.
Thank you in advance
PHP Code:
if(TL_MODE == 'FE')
{
// if a user is logged in
if(sha1(session_id().(!Config::get('disableIpCheck') ? Environment::get('ip') : '').'BE_USER_AUTH') == Input::cookie('BE_USER_AUTH') && $GLOBALS['feRun'] === 1)
{
dump($GLOBALS['_SESSION']);
}
}
Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
Amazon wishlist
Bookmarks