hello guys, im little new with php i wish some1 can help me with that problem please. when some1 login to my system, i save variables in the session. always when they dont use the page for like 20+- minutes the variables removed from the session, can some1 tell me please how to make it longer please realy thnks guys liran
That is the point of sessions though, they are supposed to time out without user activity. It's one of the reasons why someone would use sessions instead of cookies.
I agree with crazybjörn, I think cookies might be what you need to implement. You're half way there seeing that you're storing the variable values in seesion vars. Now. all you'll need to do is store them in cookies instead.
Try adding this to your code: in_set('session.gc_maxlifetime','3600'); Code (markup): The default is 1440 seconds, or 24 minutes. 3600 will be 1 hour.