Jump to content
Chris B

Continually disconnected (random)

Recommended Posts

Hi,

My name is Chris, i have been using Processwire for several months. I had the opportunity to create several sites with this one. Despite being great tool, I often encounter the same problem in the administration.
I am continually disconnected (logout) for no specific reason. It's every time: after a page change. Ex: I send a form or simply a page change via a link.

I checked the logs, messages, etc. but there is nothing related to this problem.

Thank you for your support 🙂

Share this post


Link to post
Share on other sites

These threads discuss similar issues: 

 

While developing you might want to disable fingerprinting from within config.php - it's explained and discussed in the threads above.

Another thing you can and might want to doublecheck:

  • CDNs can be sometimes an issue as well; saw this with Cloudflare CDN a few times
  • some browser extensions (privacy and adblock-related ones) can cause those issues as well
  • Pi-Hole can be an issue too
  • Operas built-in-VPN causes these conflicts/problems (especially in tools like Asana and Slack - and PW)

And those things are just the few I remembered from similar situations I had to deal with on my own.

  • Like 4

Share this post


Link to post
Share on other sites

Hi @Christophe Badoux

It sound like a permission or maybe a server cache issue, but we need more information about your hosting.

Things to check :

  • browser cache
  • disk space available
  • value of session.save_path and permission of this value
  • permission of site/assets
  • server caching (depending on the server setup, could be NGINX, Squid, Varnish, Memcached, etc..)

 

I bet on the last one.

Oh and Welcome to the forum 🙂

  • Like 3

Share this post


Link to post
Share on other sites

I also encounter that (very randomly) on some installs. Till now, I couldn't really find a pattern. Perhaps changing from cookie to DB-based session management can help.

Share this post


Link to post
Share on other sites

If you put your site behind Cloudflare, you have to exclude your backend URL (using Page rules) otherwise it will be cached and will disconnect you. 

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, Rudy said:

If you put your site behind Cloudflare, you have to exclude your backend URL (using Page rules) otherwise it will be cached and will disconnect you. 

@Rudy Can you explain in more details or post a screenshot of your settings? Disabling cache with the following page rule for the admin URL actually makes things a lot worse…

 

cloudflare.png

Share this post


Link to post
Share on other sites

Thank you all!

I waited a few hours before pronouncing the verdict ^^

The problem was indeed the change of IP.

I added this line in: /site/config.php

$config->sessionFingerprint = 1; /* 1 or true: Fingerprint on default / recommended setting (currently 10). */

by

$config->sessionFingerprint = 8; /* 8: Fingerprint only the useragent */

I was able to test this solution on all the sites I created. It works.

Thx you to everyone !!!

  • Like 3

Share this post


Link to post
Share on other sites

I can confirm that I’ve also reached exactly the same conclusion this morning. Using only the useragent seems to keep the constant disconnections away. 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By 999design
      Hi all,
      Running into an odd error that I can't seem to get my head around.
      We have 2 separately created Formbuilder forms sitting on a single page.
      But we keep experiencing weird results with them, originally we couldn't get one of the forms to ever submit so we ended up disabling CSRF for them which let us get around this issue.
      However it then causes a problem in that with CSRF disabled, one of forms always records 2 entries on submission. Just a straight duplicate within the entries for that form.
      So trying to stop this happening we tried enabling CSRF again and although that does stop the duplicated entry, it ends up giving really weird feedback such as the attached screengrab.
      Hazarding a guess I assume whatever is trigger on submission is firing twice because of the presence of the second form, but I have no idea why this would be the case as they are 2 seperately named forms?
      Any ideas?

    • By cosmicsafari
      Hi all,
      I have the same form on multiple pages, the idea being that I can populated a hidden field with a page specific value automatically.
      I figured this should be reasonably straight forward but I can't seem to get the following to take effect.
      <?php echo $forms->embed ('my-form-name', array('hidden_field_name' => '666')); ?> No matter what I do, it never updates the default value currently set for said hidden field.
      Feels like I'm missing something really obvious?
      Any ideas?
    • By benbyf
      I have a a form in my site footer that can be accessed anywhere on site, I've added the form in the _inc.php file and added the render in the pages footer.php. However, this works well on the homepage e.g. you can submit said form and get a thank you on reload, doesnt work at all on other pages... Just lots like a fresh reload. Any thing im doing wrong here or ways to diagnose as there isn't an error log for formbuilder etc...?
    • By neophron
      Hi,
      I hope, this is the right place for questions about the Formbuilder (I couldn't find in the ProField support a subsection for the Formbuilder).
      A client needs for his website a random generator of a code (as winning numbers). This generator should be placed in a simple form (name and email) and a random generated code should be visible there.
      This code, or winning number, must be stored in the db together with the name and email. And the participant must receive a confirmation email with this code.
      I know, that the Formbuilder can store and send data to the user. But what about a random generated code? Is this a hook job?
      I found this module: http://modules.processwire.com/modules/process-field-generator/ but it's not for PW 3. 
    • By prestoav
      Hi folks.
      I'm building a Formbuilder form to create new advert pages in a marketplace. Formbuilder is ideal for this. I need to add a description field that allows text to be added with line breaks etc. so showing a CKEditor field would be ideal (i.e. exactly like the field I'm typing into right now)!.
      Does anyone know if it's possible to add a CKEditor field to the front end presentation fo a Formbuilder field, maybe via a module or such?
      Many thanks!
×
×
  • Create New...