PHP getting active sessions

后端 未结 3 1678
余生分开走
余生分开走 2021-01-25 15:24

I am trying to echo each active session that has been active in the past 15 minutes, I check using the following code to log their last seen time.

$_SESSION[\'la         


        
3条回答
  •  臣服心动
    2021-01-25 16:00

    I think you don't understand $_SESSION global array. It contains data only for current session of user (not for all users of your site). You should save this data in memcached or database.

提交回复
热议问题