I wrote a PHP code that kills the session after 5 minuets from creation.
I would like to display a timer in the corner of the page that shows the
user how many minutes:seconds till the session times out. Are there any good
examples out there?
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.
Something like this?
http://keith-wood.name/countdown.html
There you have a simple example showing how to use it:
So now what we need is a UNIX timestamp (time when session will end). Then we can modify it like this:
Hope it helped!