Browse Source

Merge pull request #1188 from egorpromo/little-description-for-cookiePram

Little helpful description for Session::cookieParam
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
aeda7fb1df
  1. 1
      framework/yii/web/Session.php

1
framework/yii/web/Session.php

@ -82,6 +82,7 @@ class Session extends Component implements \IteratorAggregate, \ArrayAccess, \Co
public $flashVar = '__flash';
/**
* @var array parameter-value pairs to override default session cookie parameters that are used for session_set_cookie_params() function
* Array may have the following possible keys: 'lifetime', 'path', 'domain', 'secure', 'httpOnly'
* @see http://www.php.net/manual/en/function.session-set-cookie-params.php
*/
private $_cookieParams = ['httpOnly' => true];

Loading…
Cancel
Save