Setting response header in site precontroller
We are having an interesting challenge. One of our requirements for a new site is to allow for people to "sign in" (it not really signing in but that's the easiest way of explaining it) and stay signed in for up to seven (7) days. To do this we are dropping a cookie on the workstation with an expiration of 7 days.
That works great.
Here's the challenge - in the site controller we check to see if the cookie is valid and if it is, set the "isLoggedIn" to "True". That works great.
Here's the challenge, LiveSite assumes that a new session can't be signed in. So it decides to display the site's login page BEFORE calling the site precontroller. In our case the person could still be considered logged in even though there is a new session.
I would love to fix this, but one option is to refresh the page login page if the person should be considered logged in and the session is new.
Question - how to refresh the page from within a site precontroller?
We've tried:
HttpServletResponse response = context.getResponse();
response.setHeader("Refresh", "0");
- and -
context.setRedirectUrl("#");
Both without success.
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax