I've built an intranet with Silverstripe where users can login to browse permission enabled pages. When a user login he/she is supposed to get redirected to a certain page, in this case a page called News. The function I'm using is "director::redirect". This works fine the first time the user logs in but not the sebsequent times. This seems to have something to do with the pages being cached since it works if I add the "?flush=1" sequence to the URL.
Does anyone have any idea on a solution to this issue?
It seems like the CMS remembers the last page you visited before you logged off and redirects to that page when you login the next time. I even tried to to a double redirection to first clear the cache and then redirect to the news page but with no luck.