Plugin Directory

Changeset 3732207


Ignore:
Timestamp:
10/07/2026 09:13:46 AM (2 weeks ago)
Author:
instapunchout
Message:

1.0.79: auth cookie handler keeps other Set-Cookie headers (LiteSpeed vary, WooCommerce session), adds Path and GMT expiry

Location:
instapunchout/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • instapunchout/trunk/instapunchout.php

    r3731579 r3732207  
    99Description: This is the punchout plugin which is created by InstaPunchout.
    1010Author: InstaPunchout
    11 Version: 1.0.78
     11Version: 1.0.79
    1212*/
    1313
    … …  
    10011001function instapunchout_setcookie($name, $value)
    10021002{
    1003     $date = date("D, d M Y H:i:s", time() + 3600 * 6) . 'GMT';
    1004     header("Set-Cookie: {$name}={$value}; expires={$date};SameSite=None;Secure;HttpOnly");
    1005 }
     1003    $expires = gmdate('D, d M Y H:i:s', time() + 3600 * 6) . ' GMT';
     1004    $path = (defined('COOKIEPATH') && COOKIEPATH) ? COOKIEPATH : '/';
     1005    // replace=false: keep cookies set earlier in this request (LiteSpeed _lscache_vary, WooCommerce session, ...)
     1006    header("Set-Cookie: {$name}={$value}; expires={$expires}; Path={$path}; SameSite=None; Secure; HttpOnly", false);
     1007}
  • instapunchout/trunk/readme.txt

    r3731579 r3732207  
    11=== InstaPunchout ===
    2 Stable tag: 1.0.78
     2Stable tag: 1.0.79
    33Tags: punchout,cxml,oci,ariba,woocommerce,sap,jaggaer,workday,proactis,workday,corcentric,oracle
    44Requires at least: 5
Note: See TracChangeset for help on using the changeset viewer.