[eluser]vertmonkee[/eluser]
In my login class I have two functions index and logout
What I want to be able to do is allow additional url segments for the index function which will act as a redirect upon successful login.
So in routes.php I put
$route['login/(:any)'] = 'login/index/$1';
This works fine apart from the logout function is not called. So I tried adding
$route['login/logout/'] = 'login/logout/';
both above and below the previous route declaration and neither are working.
Is it possible to achieve this? If so how can it be accomplished?
Thanks