Hi all, i´m currently testing an playing with the members module and all works great until i try to logout i can see in the login.php code that this template also handles 'logout', i can see too that the original code check if the user is logged in and then test if action='logout' then process logout else go to homepage. So every time i visit login.php while logged in as member i´m redirected to homepage:
i tried hardcoding the 'member_process_logout' to automatically logout when template is visited in two ways:
In the two cases i get this message on the browser:
Is there something i´m doing wrong here or is there another way to logout i´m not seeing??
- Code: Select all
<cms:if k_member_logged_in>
<!-- this 'login' template also handles 'logout' requests. Check if this is so -->
<cms:set action="<cms:gpc 'act' method='get'/>" />
<cms:if action='logout' >
<cms:member_process_logout />
<cms:else />
<!-- what is an already logged-in member doing on the login page? Send back to homepage. -->
<cms:redirect k_site_link />
</cms:if>
<cms:else />
........
</cms:if>
i tried hardcoding the 'member_process_logout' to automatically logout when template is visited in two ways:
- Code: Select all
<!-- method 1 if user logged in automatically process the logout-->
<cms:if k_member_logged_in >
<cms:member_process_logout />
<cms:else />
......
</cms:if>
<!--method 2 if user logged in check for action='logout' but process the logout either way-->
<cms:if k_member_logged_in >
<!-- this 'login' template also handles 'logout' requests. Check if this is so -->
<cms:set action="<cms:gpc 'act' method='get'/>" />
<cms:if action='logout' >
<cms:member_process_logout />
<cms:else />
<cms:member_process_logout />
</cms:if>
<cms:else />
......
</cms:if>
In the two cases i get this message on the browser:
Security tokens do not tally for executing this action. Please try again
Is there something i´m doing wrong here or is there another way to logout i´m not seeing??