Advertisement
giordanocardillo

Joomla! 1.5.22-1.5.23 FIX for AdminExile

Aug 13th, 2011
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. /** You just have to go to file /libraries/joomla/session/session.php and find */
  2.  
  3. function fork()
  4.     {
  5.         if( $this->_state !== 'active' ) {
  6.             // @TODO :: generated error here
  7.             return false;
  8.         }
  9.        
  10.         session_regenerate_id();
  11.         return true;
  12.     }
  13.  
  14. /** Replace it with */
  15.  
  16. function fork()
  17.     {
  18.         if( $this->_state !== 'active' ) {
  19.             // @TODO :: generated error here
  20.             return false;
  21.         }
  22.         // get the old data
  23.         $sessiondata = $this->_store->read($this->getId());
  24.         // delete upon regenerate (true)
  25.         session_regenerate_id(true);
  26.         // write the old data to the new session
  27.         $this->_store->write($this->getId(), $sessiondata);
  28.         return true;
  29.     }
  30.  
  31. /** You've done it! */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement