Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** You just have to go to file /libraries/joomla/session/session.php and find */
- function fork()
- {
- if( $this->_state !== 'active' ) {
- // @TODO :: generated error here
- return false;
- }
- session_regenerate_id();
- return true;
- }
- /** Replace it with */
- function fork()
- {
- if( $this->_state !== 'active' ) {
- // @TODO :: generated error here
- return false;
- }
- // get the old data
- $sessiondata = $this->_store->read($this->getId());
- // delete upon regenerate (true)
- session_regenerate_id(true);
- // write the old data to the new session
- $this->_store->write($this->getId(), $sessiondata);
- return true;
- }
- /** You've done it! */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement