Search code examples
grailsspring-securitylogout

How can i log out from my own created gsp view with spring security installed in grails app?


I have installed spring security plug in to grails project.i have made my default action as auth. and when i login i get gsp view created by me.now how can i log out from there..

Thanks, LAxmi


Solution

  • Add a link to /logout - LogoutController will log you out.

    For example: <g:link controller='logout'>Logout</g:link>