Session timeout?
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
Support Staff 2 Posted by Drew McLellan on 08 Mar, 2010 05:19 PM
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.
3 Posted by chad on 08 Mar, 2010 05:23 PM
No, only one admin account has been created
Support Staff 4 Posted by Drew McLellan on 08 Mar, 2010 05:26 PM
And you're the only person using that admin account?
5 Posted by chad on 08 Mar, 2010 05:30 PM
Yes
Support Staff 6 Posted by Drew McLellan on 08 Mar, 2010 06:43 PM
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?
7 Posted by chad on 08 Mar, 2010 06:49 PM
No nothing unusual, just a basic install. I have attached the diagnostic report. Thanks Drew.
Support Staff 8 Posted by Drew McLellan on 08 Mar, 2010 07:14 PM
Does everything else seem fine? Is the database connection generally reliable?
9 Posted by chad on 08 Mar, 2010 08:51 PM
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?
Support Staff 10 Posted by Drew McLellan on 08 Mar, 2010 08:54 PM
There's not an easy way to do that, unfortunately.
Could you add the following to your
config.phpfile? It will output some diagnostic information at the bottom of each page, and will hopefully show if anything is going wrong.11 Posted by chad on 09 Mar, 2010 03:54 PM
Drew, I emailed you a username/password so you can see the issue happening firsthand.
Support Staff 12 Posted by Drew McLellan on 10 Mar, 2010 02:44 PM
Do you have anything else hosted on this account, and does it exhibit any session issues?
13 Posted by chad on 11 Mar, 2010 05:36 PM
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.
Support Staff 14 Posted by Drew McLellan on 11 Mar, 2010 05:48 PM
That's strange, but thanks for the update!