I have some method about user statistics to run just before CI session expires.
I am using codeigniter database session.
plz give me a pieces of advice.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no out of the box way to do this with CodeIgniter. One solution would be to configure sessions not to expire, save a session expiration timestamp in the database, and then handle the session expiration on the server side. In your code you would perform a check to see if the session had expired. If it had you would call your method and remove the session.
Here is a thread from the CodeIgniter forums that explains it.
http://codeigniter.com/forums/viewthread/199727/