Requests_Cookie::path_matches( string $request_path ): boolean

In this article

Check if a cookie is valid for a given path

Description

From the path-match check in RFC 6265 section 5.1.4

Parameters

$request_pathstringrequired
Path to check

Return

boolean Whether the cookie is valid for the given path

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.