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.

Users getting logged out of the site

January 06, 2012 7:41am

Subscribe [2]
  • #1 / Jan 06, 2012 7:41am

    artminister

    159 posts

    This question may be related to a resolved thread.

    My users are getting logged out of the site all of a sudden. I am using the following addons

    EE 2.3.1

    Modules——-
    Simple Registration
    User
    Social Update
    Social Login Pro
    SEO Lite
    Safecracker
    Pages Membrr

    Extensions——-
    Custom System Messages
    Accessible Captcha
    Seg2Cat
    Simple Registration
    User
    Membrr

    I have used the following in my config.php

    $config['cookie_domain'] = "";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $config['admin_session_type'] = "c";
    $config['user_session_type'] = "c";
    $config['require_ip_for_login'] = "n";
    $config['require_ip_for_posting'] = "n"; 
    $config['secure_forms'] = "n";

    Tried adding

    $config['cookie_domain'] = ".siteA.com";

    But nothing works. I can PM you the url of the staging site.

  • #2 / Jan 06, 2012 5:04pm

    Kevin Smith

    4784 posts

    Hi artminister,

    When you say “getting logged out all of a sudden”, what do you mean? Are they all being logged out at the same time? Is each user only able to stay logged-in for a short period of time after they log out? If you could provide some more details with this request, it’ll help us better help you in solving the issue. Let us know details about the problems you’ve documented in particular.

    Thanks!

  • #3 / Jan 06, 2012 9:26pm

    artminister

    159 posts

    Hi Kevin,

    They are not getting logged out all at once. 

    *From a majority of the users, after a 10 second inactivity, they click on a member area link in the front-end, they have to login.
    *From other users, once they login and try to click on a link in the site, they are logged out.

    These are the only info i have currently from my users. Its a beta testing group (10 members). All the users are from Singapore. Let me know if you need any more information.

  • #4 / Jan 08, 2012 5:14am

    artminister

    159 posts

    Hi Kevin,

    Do you have an update for me on this?

    A little more about the site : I have a modified version of index.php, which checks the subdomain of the site and sets a session variable. Nothing else.

    This is my config.php

    http://pastie.org/3147705

    My beta users are actually waiting for this to be resolved.

    Thank you
    Vinay

  • #5 / Jan 10, 2012 12:34pm

    artminister

    159 posts

    Still looking for a solution here.

  • #6 / Jan 16, 2012 10:35am

    Kevin Smith

    4784 posts

    Hi artminister,

    I’m terribly sorry about the wait you’ve had on this one. Let me see if I can get you a resolution on this quickly.

    From the config.php file you shared on pastie.org, it looks like you don’t have included the config settings noted at the top of this thread. Could you add those back in as a first step to make sure?

    The one other thing I would try is this: from what we’ve seen with login issues from Singapore (it seems to be a common thing), it appears that there may be some IP switching that’s going on. Currently, EE doesn’t keep sessions when the IP address changes, so the current workaround is to implement the core changes noted here.

    Let me know if you’re still experiencing issues after implementing this change in the core!

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

ExpressionEngine News!

#eecms, #events, #releases