Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. protected function _start()
  2.     {
  3.         //  start session if not startet
  4.         if ($this->_state == 'restart') {
  5.             session_id($this->_createId());
  6.         } else {
  7.             $session_name = session_name();
  8.             if (!JRequest::getVar($session_name, false, 'COOKIE')) {
  9.                 if (JRequest::getVar($session_name)) {
  10.                     session_id(JRequest::getVar($session_name));
  11.                     setcookie($session_name, '', time() - 3600);
  12.                 }
  13.             }
  14.         }
  15.  
  16.         session_cache_limiter('none');
  17.         session_start();
  18.  
  19.         // Send modified header for IE 6.0 Security Policy
  20.         // Joomla! 1.6: Moved to configurable plugin due to security concerns
  21.         //header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
  22.  
  23.         return true;
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement