Session timeout problem

Im having problem with session, it keep logging me out if I have been inactivate for like 20 minutes.

I don’t understand why is this happening, there is no session timeout on my php code.

php.ini file
session.gc_maxlifetime = 28800

then I have tested <?php echo ini_get(‘session.gc_maxlifetime’); ?>

It output 28800

Check out session.gc_max_lifetime in the manual.

Especially the bit where it says

:slight_smile:

I have fixed the problem I think.

I have to add this in .htaccess
SetEnv PHPRC /home/takeaway/public_html