Session timeout?

chad's Avatar

chad

08 Mar, 2010 04:45 PM via web

Hi guys, thanks for a great product. I have deployed it to several sites already and love the flexibility and ease of use perch provides. I am experiencing one issue on one particular client hosted at Network Solutions. It seems that the session logs out after a short amount of time. For example; When I go to add a new user, I fill in the fields and am forwarded back to the login screen. Once I login again I start the process over. I have not seen this on other servers so I am a bit confused.

I verified sessions are enabled in my php.ini (see below). Is there something I am missing? Thanks.

register_globals=0
memory_limit = 128m
max_execution_time = 18000
magic_quotes_gpc = off
session.auto_start=True

  1. Support Staff 2 Posted by Drew McLellan on 08 Mar, 2010 05:19 PM

    Drew McLellan's Avatar

    Could it be that two people are logging in using the same user account? Perch has built-in session hijacking protection which will log you out if two people are using the same account at once.

  2. 3 Posted by chad on 08 Mar, 2010 05:23 PM

    chad's Avatar

    No, only one admin account has been created

  3. Support Staff 4 Posted by Drew McLellan on 08 Mar, 2010 05:26 PM

    Drew McLellan's Avatar

    And you're the only person using that admin account?

  4. 5 Posted by chad on 08 Mar, 2010 05:30 PM

    chad's Avatar

    Yes

  5. Support Staff 6 Posted by Drew McLellan on 08 Mar, 2010 06:43 PM

    Drew McLellan's Avatar

    Are you accessing the site over SSL or anything unusual like that?

    Could you show me the output from the diagnostics report which you can get from the Settings page?

  6. 7 Posted by chad on 08 Mar, 2010 06:49 PM

    chad's Avatar

    No nothing unusual, just a basic install. I have attached the diagnostic report. Thanks Drew.

  7. Support Staff 8 Posted by Drew McLellan on 08 Mar, 2010 07:14 PM

    Drew McLellan's Avatar

    Does everything else seem fine? Is the database connection generally reliable?

  8. 9 Posted by chad on 08 Mar, 2010 08:51 PM

    chad's Avatar

    The database is hosted at Network Solutions on a shared hosting platform and is reliable. I have had no issues with it in the past. Everything else seems fine. I can manage to edit data or create a user if I do so very quickly, otherwise back to the login screen. Is there a quick way to temporarily disable the hijacking protection to see if that is causing the issue?

  9. Support Staff 10 Posted by Drew McLellan on 08 Mar, 2010 08:54 PM

    Drew McLellan's Avatar

    There's not an easy way to do that, unfortunately.

    Could you add the following to your config.php file? It will output some diagnostic information at the bottom of each page, and will hopefully show if anything is going wrong.

    define('PERCH_DEBUG', true);
    
  10. 11 Posted by chad on 09 Mar, 2010 03:54 PM

    chad's Avatar

    Drew, I emailed you a username/password so you can see the issue happening firsthand.

  11. Support Staff 12 Posted by Drew McLellan on 10 Mar, 2010 02:44 PM

    Drew McLellan's Avatar

    Do you have anything else hosted on this account, and does it exhibit any session issues?

  12. 13 Posted by chad on 11 Mar, 2010 05:36 PM

    chad's Avatar

    Thanks for your help Drew. I changed the way the database was being called in the config file and it seemed to resolve the issue. I was using the database IP, once I changed it to the database server name, problem resolved.

  13. Support Staff 14 Posted by Drew McLellan on 11 Mar, 2010 05:48 PM

    Drew McLellan's Avatar

    That's strange, but thanks for the update!

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

Five times two is what?

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.