[pmwiki-devel] Logout and session_destroy

marc gmane at auxbuss.com
Fri Jan 19 12:20:23 CST 2007


marc said...
> Patrick R. Michaud said...
> > On Mon, Dec 04, 2006 at 05:46:23PM -0000, marc wrote:
> > > Hey ho,
> > > 
> > > PmWiki destroys the session during a logout. There are cases where I 
> > > wish to preserve session variables after a logout.
> > > 
> > > Is there a way to do this (relatively simply)?
> > 
> > We could possibly do it with an $Enable... variable of some sort.
> > Something like $EnableLogoutDestroysSession or the like.
> 
> That would be ideal.
> 
> > The other option is to write a custom HandleLogout() function
> > and use that.
> 
> How close is:
> 
>   function HandleLogoutA($pagename, $auth = 'read') {
>     global $LogoutRedirectFmt;
>     SDV($LogoutRedirectFmt, '$FullName');
>     @session_start();
>     unset($_SESSION['authid']);
>     unset($_SESSION['authlist']);
>     $_SESSION['authpw'] = array();
>     Redirect(FmtPageName($LogoutRedirectFmt, $pagename));
>   }

(:bump:)

-- 
Cheers,
Marc




More information about the pmwiki-devel mailing list