In some cases you may encounter missing files: images, css or js files.
All those missing files are processed by the current bootstrap: index.php

If the session is set to regenerate on each request, as a normal security measure,
the currently logged user is logged off, because the session ID is different now.

To avoid this, below the following line

RewriteEngine On

add the line :

RewriteCond %{REQUEST_FILENAME} (\.gif|\.jpg|\.png|\.css|\.js)$ [OR]

Save and don’t forget to test.

Even though it’s a well known fact that real men do not test…


Looking for PHP, Laminas or Mezzio Support?

As part of the Laminas Commercial Vendor Program, Apidemia offers expert technical support and services for:

  • Modernising Legacy Applications
  • Migration from any version of Zend Framework to Laminas
  • Migration from legacy Laminas API Tools (formerly Apigility) to Dotkernel API
  • Mezzio and Laminas Consulting and Technical Audit
  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>