login/logout

Author Message

Vijay Anand

Tuesday 30 March 2004 3:29:20 am

      <td align="right">
      {section show=eq($current_user.contentobject_id,$anonymous_user_id)}
      <a class="leftmenuitem"  href={"/user/login/"|ezurl}>{'Login'|i18n('design/standard/layout')}</a>
      {section-else}
      <a class="leftmenuitem" href={"/user/logout/"|ezurl}>{'Logout'|i18n('design/standard/layout')} ({$current_user.contentobject.name|wash}) </a>
      {/section}
      </td>

i added the above code to show login/logout . when i click logout it takes to login screen but user session is not destroyed. how to do it?

Dominik Pich

Tuesday 30 March 2004 3:40:24 am

Sorry, same code... should work
Try seing why it fails by debugging the logout function.

			{section show=eq($current_user.contentobject_id,$anonymous_user_id)}
				<a class="menuitem" href={"/user/login/"|ezurl}>{"Login"|i18n("design/standard/layout")}</a>
			{section-else}
				<a class="menuitem" href={"/user/logout/"|ezurl}>{"Logout"|i18n("design/standard/layout")}</a> ({content_view_gui view=text_linked content_object=$current_user.contentobject})
			{/section}

Vijay Anand

Sunday 04 April 2004 9:00:32 pm

yes it is

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.