1

Can you help me.

In my demo server when the user login, it's logout automatically for next 2 hours. But when I place my web to production server, it' logout too fast (15minutes less, user will logout).

in production server, I use iis.

Thanks

2
  • 1
    Have you checked the PHP documentation on session configuration? Commented Jun 20, 2012 at 2:43
  • yes, i checked. there is no problem before i move my website to production server. Commented Jun 20, 2012 at 2:52

1 Answer 1

1

Parameters can helps you

ini_get(’session.gc_maxlifetime’)
ini_get(‘session.gc_maxlifetime’);
ini_get(‘session.gc_probability’);
ini_get(‘session.gc_divisor’);

When starting session try this:

session_set_cookie_params(8*60*60);
session_start();
Sign up to request clarification or add additional context in comments.

1 Comment

is there any way for extending session timeout?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.