Forum

Thread tagged as: Problem

Keep getting logged out

In almost all our perch sites we keep getting logged out of the perch dashboard, I would say randomly. Doesnt matter what tasks we are doing in dashboard, seems very random to me when we get logged out. No problem with log in afterwards. Anyone else having the same problem?

Erick Green

Erick Green 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics?

Perch information

Perch: 2.8.27
Production mode: Production (100)
Installed apps: content (2.8.27), assets (2.8.27), categories (2.8.27), perch_blog (5.0), perch_forms (1.8.3), perch_backup (1.2)
DB driver: PDO
DB tables: perch2_blog_authors (3), perch2_blog_comments (0), perch2_blog_index (119), perch2_blog_posts (2), perch2_blog_posts_to_tags (0), perch2_blog_sections (1), perch2_blog_tags (0), perch2_blogs (1), perch2_categories (2), perch2_category_counts (1), perch2_category_sets (1), perch2_content_index (1254), perch2_content_items (254), perch2_content_regions (27), perch2_forms (1), perch2_forms_responses (1), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (0), perch2_pages (9), perch2_resource_log (356), perch2_resource_tags (0), perch2_resources (59), perch2_resources_to_tags (0), perch2_settings (24), perch2_user_passwords (0), perch2_user_privileges (39), perch2_user_role_privileges (31), perch2_user_roles (3), perch2_users (6)
Users: 6
App runtimes:

<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_forms',
        'perch_backup',
    );

Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: 59ab4ffc52c67810885310a48582513e
L1: 224d1036b8f9a52a5a5075c95945cf97
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.26: done
latest_version: 2.8.15
on_sale_version: 2.8.27
headerScheme: light
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /perch/resources/X.svg
perch_blog_site_name:
perch_blog_post_url: /blogg/post.php?s={postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
perch_blog_update: 5.0.1
update_2.8.27: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: X
PERCH_DB_SERVER: X.mysql.domeneshop.no
PERCH_DB_DATABASE: X
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/Oslo
PERCH_EMAIL_FROM: X
PERCH_EMAIL_FROM_NAME: X
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/3/b/X/www/perch
PERCH_CORE: /home/3/b/X/www/perch/core
PERCH_RESFILEPATH: /home/3/b/X/www/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_IMAGE_LIB: imagick
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/3/b/X/www/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20

Hosting settings

PHP: 5.5.33-1~dotdeb+7.1
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.47
MySQL server: 5.5.5-10.0.23-MariaDB-1~wheezy-log
Free disk space: 5.74 TB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, json, mbstring, pcntl, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, cgi-fcgi, PDO, curl, gd, geoip, imagick, imap, intl, mailparse, mcrypt, mongo, mssql, mysql, mysqli, odbc, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, phplimiter, ps, pspell, recode, sqlite3, svn, tidy, xmlrpc, xsl, mhash, Zend OPcache
GD: Yes
ImageMagick: Yes
PHP max upload size: 128M
PHP max form post size: 128M
PHP memory limit: 129M
Total max uploadable file size: 128M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
DOCUMENT_ROOT: /home/3/b/X/www
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_COOKIE: _ga=GA1.2.1945930663.1457945243; cmsa=1; _gat=1; PHPSESSID=qg19uld5035urgk4npt60hbrk6
HTTP_HOST: www.X.no
HTTP_REFERER: https://www.X.no/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0
HTTP_X_BACKEND: ws05k41_ws01k4
HTTP_X_DS_CLIENT_IP: 77.40.244.108
HTTP_X_DS_REQUEST_XID: 783789481
HTTP_X_FORWARDED_FOR: 77.40.244.108
HTTP_X_VARNISH: 783789481
MAGICK_AREA_LIMIT: 512000000
MAGICK_DISK_LIMIT: 512000000
MAGICK_FILE_LIMIT: 100
MAGICK_MAP_LIMIT: 512000000
MAGICK_MEMORY_LIMIT: 512000000
MAGICK_THREAD_LIMIT: 1
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 77.40.244.108
REMOTE_PORT: 57408
REQUEST_METHOD: GET
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/3/b/X/www/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 10.0.248.119
SERVER_ADMIN: X
SERVER_NAME: www.X.no
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache/2.2.22
UNIQUE_ID: VvE69sI-@HcAAD4AYdwAAAAZ
X_DSWHID: MTAyOTkwOQ==
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1458649846.1535
REQUEST_TIME: 1458649846
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is your session lasting for less than 30 minutes?

Yes. Have been logged out after 20 seconds and/or 5-10 minutes.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Check that your session folder isn't full.

It's not. This happens on a brand new site and older sites build with Perch.

Drew McLellan

Drew McLellan 2638 points
Perch Support

But just on this one server?

Yes all sites are on the same server.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you open the control panel in multiple browser tabs, or have multiple users logging in with the same account?

No. Have multiple users logged in at the same time but with different accounts.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Does the same thing happen in your dev environment?

Yes. Im not sure if its has anything to do with this but Ive got a "Error 503 Backend fetch failed" message once.

Drew McLellan

Drew McLellan 2638 points
Perch Support

That doesn't really point to anything specific. I'm not sure what to suggest, really.