Created
July 25, 2013 05:03
-
-
Save nomaanp/6077035 to your computer and use it in GitHub Desktop.
Logout problem in SanAuth
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
Module.php for App1 | |
<?php | |
namespace App1; | |
class Module | |
{ | |
public function getAutoloaderConfig(){} /*Common Code*/ | |
public function getConfig(){} /* Common Code */ | |
public function getServiceConfig() | |
{ | |
return array( | |
'SanAuth\Model\MyAuthStorage' => function ($sm) { | |
return new \SanAuth\Model\MyAuthStorage('zf_tutorial1'); | |
}, | |
), | |
); | |
} | |
} | |
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
Module.php for App2 | |
<?php | |
namespace App2; | |
class Module | |
{ | |
public function getAutoloaderConfig(){} /*Common Code*/ | |
public function getConfig(){} /* Common Code */ | |
public function getServiceConfig() | |
{ | |
return array( | |
'SanAuth\Model\MyAuthStorage' => function ($sm) { | |
return new \SanAuth\Model\MyAuthStorage('zf_tutorial2'); /* changing the zf_tutorial1 to zf_tutorial2 solves the login issue */ | |
}, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment