User Tools

Site Tools


libraries:cookiehandler:cookiehandlerclass:setpath

CookieHandler::SetPath()


Definition

Sets the valid path of the cookie, if it should differ from the one set in the Constructor __construct().

void SetPath ( [$Path = ''] )

Parameters

  • $Path String (optional)
    Path valid for this cookie. If no parameter is given, '' is set. If the path doesn't start with '/', it's added automatically.

Example

$Cookie = new CookieHandler("Testcookie");
$Cookie->SetPath("/subpage");
libraries/cookiehandler/cookiehandlerclass/setpath.txt · Last modified: 2022/12/13 19:41 by michael.pohl