Skip to content

Instantly share code, notes, and snippets.

@nomaanp
Created July 25, 2013 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nomaanp/6077035 to your computer and use it in GitHub Desktop.
Save nomaanp/6077035 to your computer and use it in GitHub Desktop.
Logout problem in SanAuth
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');
},
),
);
}
}
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