• Resolved rvry

    (@rvry)


    I noticed Check URL was not detecting that PHPSESSID was present when the header for Set-Cookie is an array. Not sure why the code doesn’t detect via in_array but the cookie is present.

    I added this to varnish-status.php for force an array into a flat string which seems to work. Might want to look at a better solution?

    if ( is_array( $headers[‘Set-Cookie’] ) ) {
    $headers[‘Set-Cookie’] = implode(“, “, array_values($headers[‘Set-Cookie’]));
    }

    // If cookies are an array, scan the whole thing. Otherwise, we can use strpos.
    if ( is_array( $headers[‘Set-Cookie’] ) ) {

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Evaluating Set-Cookie in ‘Check URL’’ is closed to new replies.