<div class="nav-top">
                        <t:security.loginlink/>&nbsp;&nbsp;
                    <t:security.guest>
                                <div class="userHeader">
                                      <!-- guest header content --!>
                                </div>
                        </t:security.guest>
                        <t:security.user>
                            <div class="userHeader">
     <!-- login header content --!>
</div>
                        </t:security.user>
    </div>

    <div class="subpage">
        <t:body/>
    </div>
    <div class="nav-bottom">
     <!-- footer content --!>
    </div>

i have this as my layout.tml. I am using <t:security.loginlink/> to generate
the login logout link. 

This is part of my Layout.java which is inside the components package. 
       @InjectPage
        private Index index;


        @Log
        public Object onActionFromLogoutLink() {
                this.securityService.getSubject().logout();
                try {
                        final Session session = this.request.getSession(false);
                        if (session != null && !session.isInvalidated()) {
                                session.invalidate();
                        }
                } catch (final IllegalStateException ex) {
                        Layout.LOG.error("error in logging out", ex);
                }
                return this.index;
        }

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-25-with-Tynamo-0-4-0-onActionFromLogout-not-redirecting-to-index-page-tp4521350p4537710.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to