Development

Changeset 10739

You must first sign up to be able to contribute.

Changeset 10739

Show
Ignore:
Timestamp:
08/07/08 12:31:06 (1 year ago)
Author:
fabien
Message:

[1.0, 1.1, 1.2] fixed sfBrowser::restart() doesn't reset the session correctly (closes #3940)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/util/sfBrowser.class.php

    r10618 r10739  
    519519  protected function newSession() 
    520520  { 
    521     $_SERVER['session_id'] = md5(uniqid(rand(), true)); 
     521    $this->defaultServerArray['session_id'] = $_SERVER['session_id'] = md5(uniqid(rand(), true)); 
    522522  } 
    523523} 
  • branches/1.1/lib/util/sfBrowser.class.php

    r10619 r10739  
    777777  protected function newSession() 
    778778  { 
    779     $_SERVER['session_id'] = md5(uniqid(rand(), true)); 
     779    $this->defaultServerArray['session_id'] = $_SERVER['session_id'] = md5(uniqid(rand(), true)); 
    780780  } 
    781781 
  • branches/1.2/lib/util/sfBrowser.class.php

    r10628 r10739  
    776776  protected function newSession() 
    777777  { 
    778     $_SERVER['session_id'] = md5(uniqid(rand(), true)); 
     778    $this->defaultServerArray['session_id'] = $_SERVER['session_id'] = md5(uniqid(rand(), true)); 
    779779  } 
    780780 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.