How to create a timer session in php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create a timer session in php

hii i want to create a php session timer for banking application which expires after few seconds

16th Dec 2017, 6:36 PM
Raju Ghosh
1 Answer
0
PHP sessions are really only good if you are trying to keep track of information for multiple HTTP sessions. I am assuming you don't want to server to keep track of the php session after the transaction is done so you want it to expire. My recommendation would be to not use the PHP sessions at all. Though if you must use sessions, check the session.gc_maxlifetime variable.
17th Dec 2017, 6:50 AM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar