Results 1 to 2 of 2

Thread: How to get the user session

  1. #1
    New user
    Join Date
    02-12-17.
    Posts
    1

    Default How to get the user session

    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

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •