javascript:window.close()
-
Does the javascript:window.close() closed the session. I'm using IE 6.3 when I used this command it redirect to the home page and I'm already log on to that page
vanhawk wrote:
Does the javascript:window.close() closed the session
If it's the only window open at the time, then yes, it will. Otherwise, no.
vanhawk wrote:
when I used this command it redirect to the home page
huh.. are you closing or redirecting? My install of IE has somehow got itself into a state whereby if I only have one window/instance/tab (IE7) of it open, and from that open either a popup (window.open(....)) or a new window (target="_bkank") via a link on that page, then close that second window, I find that my Session has been lost on the first app. I can work around it by always opening a second tab and just leaving it on About:blank or something, but it's a weird bug of some sort in my installation - maybe worth looking out for... Fred
-
vanhawk wrote:
Does the javascript:window.close() closed the session
If it's the only window open at the time, then yes, it will. Otherwise, no.
vanhawk wrote:
when I used this command it redirect to the home page
huh.. are you closing or redirecting? My install of IE has somehow got itself into a state whereby if I only have one window/instance/tab (IE7) of it open, and from that open either a popup (window.open(....)) or a new window (target="_bkank") via a link on that page, then close that second window, I find that my Session has been lost on the first app. I can work around it by always opening a second tab and just leaving it on About:blank or something, but it's a weird bug of some sort in my installation - maybe worth looking out for... Fred
-
Thanks for the reply but, I have to rephrase or change my question. In IE 7 it has a new feature to have a multi-tab on the browser, is there in any command when the user log off on the page it will closed the browser not only the particular tab.
No - and why should there be? If they have other windows open (on other sites) they don't want you to come along and close them! I'd be most annoyed if you did that to me! If you want to end the session yourself, then use the Session.Abandon and/or Session.Clear methods. Fred
-
No - and why should there be? If they have other windows open (on other sites) they don't want you to come along and close them! I'd be most annoyed if you did that to me! If you want to end the session yourself, then use the Session.Abandon and/or Session.Clear methods. Fred
we use the code javascript:window.close() to close the browser in IE 6 we try to use the same code IE 7 and i have 2 different site opened in one browser one site has a login page and i try to log out that page. there is another tab that was open then i try to go back to the page i already log out, when i click the page on the url it open again without going to login page. anyway thanks for the advised i will try to use the command session.abandon
-
we use the code javascript:window.close() to close the browser in IE 6 we try to use the same code IE 7 and i have 2 different site opened in one browser one site has a login page and i try to log out that page. there is another tab that was open then i try to go back to the page i already log out, when i click the page on the url it open again without going to login page. anyway thanks for the advised i will try to use the command session.abandon