Problem with Login-Snippet at logout

Hi all. I have a protected page for users with an account for this. After login/logout and recalling the login page again I see a logout link instead of the login form.

Setup:
A resource (id=114) with the Login snippet

[[!Login?
&tplType=`modChunk`
&loginTpl=`myLoginTpl`
&loginResourceId=`115`
&logoutResourceId=`1`
]]

Another resource protected with resource group/user group/user (id=115). At this page is a logout link like this:
<a title="Logout" href="[[!~1? &amp;service=logout]]">Logout!</a>

I am logged out of the manager, killed all cookies. I call login page 114, see the login form, fill in user and password and enter. Protected page 115 appears with the logout link.
I click the logout link and come to page 1 (home page).

Now I call again the URL for the login page 114. And there I see only a logout link (it’s the standard logout template from the snippet = lgnLogoutTpl), not the login form.

Any ideas? Many thanks.

<a title="Logout" href="[[!~1? &amp;service=logout]]">Logout!</a>

I think this link should go to id:114 not id:1

<a title="Logout" href="[[!~114? &amp;service=logout]]">Logout!</a>
2 Likes

Aaaahhh! I should have read more carefully the documentation:

How do I log out? You simply call the page containing your Login snippet call and pass specify ‘logout’ as the service via the URL.

Many thanks, now it works fine!

1 Like

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.