Building own applications
When you love building everything yourself and dont want to depend on frameworks you most likely came across the need of building a login system that has the capability to let the user stay logged in into your site.
The straight forward way would be to use PHP build in _SESSION System to store login information. But this session system has a garbage collection which cleans the session data from time to time.
STAY LOGGEDIN!
First of all what you can do to lower that effect is to set the garbage interval very high:
session.gc_maxlifetime = 65535
Think this will solve your problem? Nope.