From 29d40192ed3dc0085b5e513ec071c81e03e95d3b Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 23 Mar 2006 13:25:09 +0000 Subject: Reorganized quickstart tutorial. --- .../protected/pages/Security/Cookie.page | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 demos/quickstart/protected/pages/Security/Cookie.page (limited to 'demos/quickstart/protected/pages/Security/Cookie.page') diff --git a/demos/quickstart/protected/pages/Security/Cookie.page b/demos/quickstart/protected/pages/Security/Cookie.page deleted file mode 100644 index 6e95e380..00000000 --- a/demos/quickstart/protected/pages/Security/Cookie.page +++ /dev/null @@ -1,42 +0,0 @@ - - -

Cookie Attack Prevention

-

-Protecting cookies from being attacked is of extreme important, as session IDs are commonly stored in cookies. If one gets hold of a session ID, he essentially owns all relevant session information. -

-

-There are several countermeasures to prevent cookies from being attacked. -

- -

-Prado implements a cookie validation scheme that prevents cookies from being modified. In particular, it does HMAC check for the cookie values if cookie validation is enable. -

-

-Cookie validation is disabled by default. To enable it, configure the THttpRequest module as follows, -

- - - - - -

-To make use of cookie validation scheme provided by Prado, you also need to retrieve cookies through the Cookies collection of THttpRequest by using the following PHP statements, -

- -foreach($this->Request->Cookies as $cookie) - // $cookie is of type THttpCookie - -

-To send cookie data encoded with validation information, create new THttpCookie objects and add them to the Cookies collection of THttpResponse, -

- -$cookie=new THttpCookie($name,$value); -$this->Response->Cookies[]=$cookie; - - -
\ No newline at end of file -- cgit v1.2.3