1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

session login and logout time

Discussion in 'PHP' started by divinequran, Oct 30, 2010.

  1. divinequran

    divinequran New Member


    I have to calculate login and logout time of an user. I store the session creation and session out time. How do I calculate the minutes or hours user have loged in. Do u have any code snippet for it?
  2. shabbir

    shabbir Administrator Staff Member

    What is the time storing unit. Is it unix time stamp?

    Try this.
    // perform subtraction
  3. divinequran

    divinequran New Member

    Thanks, It will help in writing the code.

Share This Page