set cookie(s)
function set_cookies()
{
if (preg_match_all("#set-cookie:([^\r\n]*)#i", matches))
{
foreach (match)
{
preg_match('#^\s*([^=;,\s]*)=?([^;,\s]*)#', cookie) ? list(, value) = match, expires) = match, path) = match, domain) = match, secure) = expires = isset(expires) : 0;
path) ? this->url_segments['dir'];
domain) ? this->url_segments['host'];
domain, '.');
if (!preg_match("#domain#i", #i', domain, '.') < 2)
{
continue;
}
}
else if (substr_count(name;path"), expires, '',