2 $requestUri = $app['request']->server->get('REQUEST_URI');
3 $resp = new Symfony\Component\HttpFoundation\Response();
4 $cook = new Symfony\Component\HttpFoundation\Cookie('srvr_cookie', 'srv_var_is_set_sub_folder', 0, dirname($requestUri));
5 $resp->headers->setCookie($cook);
7 <!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
8 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
10 <title>basic form</title>
11 <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
16 basic page with cookie set from server side