Created
July 17, 2011 10:24
-
-
Save worenga/1087434 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
storage: | |
class: MySessionStorage | |
param: | |
session_path: my_session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MySessionStorage extends sfSessionStorage | |
{ | |
public function initialize($options = null) | |
{ | |
if(sfContext::getInstance()->getRequest()->getParameter('sessionid')) { | |
session_id(sfContext::getInstance()->getRequest()->getParameter('sessionid')); | |
} | |
parent::initialize($options); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment