on 11-15-2004 7:50 PM
I am almost successfully mimicking the same portal logoff that happens when a user clicks the logoff link in the masthead (but I am not prompting the user "Are you sure?").
Now, the masthead performs a response.redirect.
But if I do that from MY iview - which is in the content area, not the masthead, then the portal user is redirected to the logon page <i>in the content area</i>. The masthead and TLN are still there. So when the user re-logs on, the portal is opened <i>again</i> in the content area. So, the user has two mastheads and two TLNs.
I was thinking about maybe forcing the browser to close, but I can't get window.close to work in javascript. (Or even top.window.close). My JS book says that this will not work if the browser was not <i>opened</i> with javascript.
So...
is there a way to force the browser to refresh? Call to the API for F5?
Or...
apply the response.redirect to the entire portal/broser, not just my iview?
Any other suggestions?
Hi Eric & Jacob,
You couls also use that
href = "your portal/irj/portal?logout_submit=1"
it will log off the user .
hope it helps,
Yoav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found a workaround. Thanks to all who looked at my question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you could do is to have your logoff component inherit from the AbstractPortalComponent and overwrite the doOnNodeReady method.
This method is called before any other iview is presented and you can supress the rest of the iviews and logoff the entire browser.
Do some searching for doOnNodeReady in the forum and you should find some examples (not at the same functionality, but how the method works)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.