ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Session timeout issue

September 26, 2009 1:29pm

Subscribe [3]
  • #1 / Sep 26, 2009 1:29pm

    qaswa

    9 posts

    I’ve been scouring the forums for a while reading all the various cookie/session/logout issues. A couple were similar to my issue, but nothing has helped solve it.

    The behavior is that when I try to make changes (e.g., creating a new section field), about 1 out of 3 times I’m bounced back to the CP Home page without saving the changes. I can hit the back button and see my changes, but any number of attempts will fail until I start over. It seems to be a timing issue since the first couple times after a failure tend to work.

    I have the security preferences set to “Cookies Only” (for both). If I set the prefs to “Cookies & Session ID”, then I’m bounced to the login screen every few clicks.

    I’ve cleared my browser cache and cookies with no change. I get the same behavior in both Firefox (3.5.3) and Safari (4.0.3). I’m on a Mac (10.5.8).

    BTW, I’m experiencing a similar issue posting to this forum. My last attempt cleared the content without posting my topic.

    Thanks in advance for any help.

    -Ammon

  • #2 / Sep 26, 2009 2:48pm

    qaswa

    9 posts

    Yes! My IP address changes often - primarily because I’m on a network with two throttled service providers. Anything I can do about it?

    thanks,
    Ammon

  • #3 / Sep 26, 2009 2:50pm

    Greg Aker

    6022 posts

    What is your cookie domain set to?  Also, what version and build of ExpressionEngine are you on?

  • #4 / Sep 26, 2009 2:59pm

    qaswa

    9 posts

    Thanks for the reply. You asked if my IP address changed this other thread, which seems to be a likely issue. Maybe follow up on the other tread unless it ends up not the issue.

    thanks,
    Ammon

  • #5 / Sep 26, 2009 4:06pm

    Greg Aker

    6022 posts

    Okay, I closed the other thread out, and we can troubleshoot this here, since they seem to be the same issue.

    So yes, being on multiple IPs will post an issue for you. 

    Try adding the following in your config.php file:

    $conf['require_ip_for_login'] = 'n';
    $conf['require_ip_for_posting'] = 'n'
    $conf['secure_forms'] = 'n';

    And let’s see if that helps the problem

  • #6 / Jul 06, 2010 6:13pm

    Greg,

    What you posted above, is it the same as adjusting the setting in System Preferences > Security and Session Preferences?

    Specifically:

    Require IP Address and User Agent for Login?

    I have adjusted User Session Type to Cookies Only. Should I make the same change to Control Panel Session Type to prevent frequent session time-outs when working in EE?

    Martin

  • #7 / Jul 06, 2010 7:39pm

    Brandon Jones

    5500 posts

    What you posted above, is it the same as adjusting the setting in System Preferences > Security and Session Preferences?

    Specifically:

    Require IP Address and User Agent for Login?

    Yes.

    I have adjusted User Session Type to Cookies Only. Should I make the same change to Control Panel Session Type to prevent frequent session time-outs when working in EE?

    I would leave the defaults intact unless you are actually experiencing problems. If that turns out to be the case, yes, Cookies Only should work better for you.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases