Posts: 9
Threads: 4
Joined: Nov 2015
Reputation:
0
06-15-2020, 07:31 AM
(This post was last modified: 06-15-2020, 07:32 AM by starchild.)
We have a mix of CI-3 and plain PHP, and want to be able to identify if a user is logged in via CI, so that we can display certain content.
Is there a way to do this?
Thank you.
Posts: 1,143
Threads: 15
Joined: Jun 2016
Reputation:
55
@starchild,
There are many ways to track that information. I'll give you another example. I track when users log into my app. I put the date, time, userid and activity id(001 - Log In, 002 - Log Out, etc) into a audit table that tracks user app usage. I'm then able to pull which users are logged into the app and I have information for future statistical purposes as well.