Reputation: 316
I want to call a method from view, say using anchor tag.. It should clear the session and redirect to default page of my application. I tried
Ok("Bye").withNewSession
Redirect(routes.Application.default())
But of no use, it is redirecting without clearing the session.. Any help would be much appreciated. Thanks..
Upvotes: 2
Views: 2251