Skip to content
Permalink
Browse files

Removing __regenerateId method, and moving code to renew().

  • Loading branch information...
predominant authored and markstory committed Jul 22, 2010
1 parent afede66 commit f5565895e90482202e44b0ad33ad502f2bad4ec5
Showing with 2 additions and 11 deletions.
  1. +2 −11 cake/libs/cake_session.php
@@ -655,12 +655,11 @@ protected static function _checkValid() {
}
/**
* Helper method to restart a session.
* Restarts this session.
*
* @return void
* @access private
*/
public function __regenerateId() {
public static function renew() {
if (session_id()) {
if (session_id() != '' || isset($_COOKIE[session_name()])) {
setcookie(Configure::read('Session.cookie'), '', time() - 42000, self::$path);
@@ -669,14 +668,6 @@ public function __regenerateId() {
}
}
/**
* Restarts this session.
*
*/
public static function renew() {
self::__regenerateId();
}
/**
* Helper method to set an internal error message.
*

0 comments on commit f556589

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