Skip to content
Permalink
Browse files

Removing forced start of sessions now that they are lazily started.

  • Loading branch information...
markstory committed Dec 14, 2010
1 parent daf6084 commit bd951791f4429c91502fcfe184039534257f3c9b
Showing with 0 additions and 24 deletions.
  1. +0 −11 cake/libs/controller/components/session.php
  2. +0 −13 cake/libs/view/helpers/session.php
@@ -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
*
@@ -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.
*

0 comments on commit bd95179

Please sign in to comment.
You can’t perform that action at this time.