Session parameters

Discussion in 'Customization & add-ons' started by hrt, Aug 14, 2006.

  1. hrt

    hrt New Member

    Joined:
    Sep 28, 2004
    Messages:
    1
    Is there a way to get the session id once a user logs in through amember. What I am trying to do is write some code that will timeout a user after there is some period of inactivity, but it's more complicated than just setting an amember timeout.

    A registered customer can log into amember then has access to a number of databases, he can open one or more of these databases. I want to be able to, after a set time of inactivity in all open databases, shut down each database session and the amember session.

    It looks as though the $_SESSION variable should have the information I need, but I can't find any documentation giving all of the "sub-variables" available, (I know I can get first name, last name, etc., but is there an index or unique identifier that is accessible?)

    Thanks for any help.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Call session_id() function from PHP and it will be what you need.
    Or you will find necessary value in $_COOKIE array

Share This Page