We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to use member login from EE - sessions and cookies

Development and Programming

lebisol's avatar
lebisol
2,234 posts
14 years ago
lebisol's avatar lebisol

Hi there, 1st of…not an extension/module developer here just attempting….

How would I go about to using EE’s authentication method to integrate an application that can pull ‘member’ info from EE tables? Sample code for integration I have to work with is:

/**  
 * @return the user ID of the logged in user
 */
function getUserID() {
    $userid = 0;

    if (!empty($_SESSION['userid'])) {
        $userid = $_SESSION['userid'];
    }

    return $userid;
}

/**

What is relation with ‘exp_sessions’ table to cookies and sessions? From light-years ago my understanding was that sessions are not stored in database…but EE seems to do so. So how to go about tapping into EE authentication?

       
lebisol's avatar
lebisol
2,234 posts
14 years ago
lebisol's avatar lebisol

Nevermind.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.