• Resolved mulli.bahr

    (@mullibahr)


    Seems that samesite was added to PHP 7.3.

    1. Is the plugin needed?

    2. Is the following configuration needed?

    define( 'WP_SAMESITE_COOKIE', 'Lax' ); // Lax or other setting?

    • This topic was modified 4 years, 7 months ago by mulli.bahr.
    • This topic was modified 4 years, 7 months ago by mulli.bahr.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ayesh Karunaratne

    (@ayeshrajans)

    Hi @mullibahr,

    The plugin is to force the same-saite flag on session cookies. PHP natively supports this feature after PHP 7.3, but does not enable it by default. This plugin enables same-site flag on session cookies in all PHP versions. For PHP versions older than 7.3, it comes with a compatibility layer, but still enables it on all PHP versions.

    Is the following configuration needed?

    If you use LAX, you don’t have to set it because LAX is the default configuration from the plugin too. It doesn’t hurt to explicitly declare it though.

    Thread Starter mulli.bahr

    (@mullibahr)

    Thanks for your quick reply.
    As I understand, for updated WordPress site with PHP 7.4 and 8 soon,
    the plugin is not needed, since it deals with earlier PHP versions.

    Thanks again for clarifying this issue and providing a nice solution!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Is this plugin needed for PHP 7.3 and later?’ is closed to new replies.