how to get logged_in session status in native php |
Hi,
This is the code I used in some of my project: update your CI index.php: PHP Code: //$system_path = 'system'; In your non CI PHP code Code: //relative path to CI index.php
@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. |
Welcome Guest, Not a member yet? Register Sign In |