tags:

views:

64

answers:

2

i have sessions for user login in my web sites but it expires after every 3-5 mintues and often in just 30-45 seconds... how can i fix that

+2  A: 

It shouldn't be variable, it is either a set amount or something is changing it. You can change these values in php.ini or with an .htaccess file if your hosting supports it, or you can do it with php functions, here's a thread on it:

http://webforumz.com/php/45873-change-session-lifetime-with-htaccess.htm

Kerry