Skip to content

Commit

Permalink
Removing forced start of sessions now that they are lazily started.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 14, 2010
1 parent daf6084 commit bd95179
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
11 changes: 0 additions & 11 deletions cake/libs/controller/components/session.php
Expand Up @@ -33,17 +33,6 @@
*/
class SessionComponent extends Component {

/**
* Constructor automatically starts the session.
*
* @param ComponentCollection $collection A ComponentCollection this component can use to lazy load its components
* @param array $settings Array of configuration settings.
*/
public function __construct(ComponentCollection $collection, $settings = array()) {
parent::__construct($collection, $settings);
CakeSession::start();
}

/**
* Get / Set the userAgent
*
Expand Down
13 changes: 0 additions & 13 deletions cake/libs/view/helpers/session.php
Expand Up @@ -31,19 +31,6 @@
*/
class SessionHelper extends AppHelper {

/**
* Constructor. Starts the session if it has not already been started
*
* @param View $view View instance for this helper
* @param array $settings Settings for the helper.
* @return void
*/
public function __construct(View $view, $settings = array()) {
parent::__construct($view, $settings);
if (!CakeSession::started()) {
CakeSession::start();
}
}
/**
* Used to read a session values set in a controller for a key or return values for all keys.
*
Expand Down

0 comments on commit bd95179

Please sign in to comment.