I use this module to restrict access to testing environments and I have it disabled in production.

While disabled, the module sets an empty session cookie to anonymous users which prevents HTTP proxies from caching anonymous pages.

Varnish started working after applying the attached patch.

Comments

drupalove created an issue. See original summary.

drupalove’s picture

drupalove’s picture

A small change to patch. Both work.

drupalove’s picture

Just want to clarify by saying the module is disabled I mean in the module configuration page the 'enable Restricted IPs' checkbox is not ticked.

  • Jaypan committed c734678 on 7.x-2.x authored by drupalove
    Issue #2930244 by drupalove: Do not force session start when module is...
jaypan’s picture

Status: Needs review » Fixed

Just want to clarify by saying the module is disabled I mean in the module configuration page the 'enable Restricted IPs' checkbox is not ticked.

Thanks, I was confused there, as the module will not do anything when disabled.

I've applied your patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.