Forum Discussion

svenkatesanntgr's avatar
10 years ago

End of last session

Hi there,

 

I am looking for a way to determine when the currently logged in user's last session ended.

 

We want to build a component to list activity since your last visit.

 

I see there is last_visit_time on /users and also on v2 API.

But this seems to be updated everytime the user keeps browsing the community within the current session. 

 

Is there a way to tell the end time of the last session thought the current session?

 

Thanks,

Suresh

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)

    Hi svenkatesanntgr

     

    you may want to look into creating a customization based on a custom user profile. The user profile could store the date and your customization code would populate the custom user profile every time the user has signed in. There is a freemarker event context object that you can use for that. You can file a request to support for adding a custom user profile field.

     

    If you are not sure on how to build such customization, you may also want to get in touch with your Lithium Manager and scope this up as a custom engagement.

     

    Thanks,