In my asp.net web form application, and I have an issue with internet explorer 11. The user was in "Home.aspx" and when he closes the browser and open again, the browser is still showing the last page "Home.aspx" but this page has no Session.SessionID valid, of course, if you click on any other link the user will be redirected to Login.aspx.
My question is, how can I do to redirect to Login.aspx after the last session was restored by the browser? and I do not want to depend of the "Start with tabs from the last session" setting.
Thanks.
Go into Edge - Settings - Open Microsoft Edge With... and select Start Page
Related
I am facing an issue here in my MVC application. Some external site hits the my mvc site which opens the site in new window and inserts all the data and saves GUID in session. If users hits multiple times through external site, it opens multiple tabs of my sites which ends up sharing the session in all tabs.
Is there a possibility to add a code on master page to check if a specific URL is already opened the it should close or replace the tab url? (for chrome, Mozilla and IE)
E.G. when external site hits my site, it opens with url as www.secure.abc.no/tbc/Claimadd/AuthorizeClaimAdd?claimIdentifier=cf57ede2-e78c-44b4-8a9b-c63e248862e1
Now if user tries to hit with different claimIdentifier then it should check if 'www.secure.abc.no/tbc/Claimadd/AuthorizeClaimAdd' url is already open in tab and replace the above url with new one?
I have this strange problem that is driving me crazy.
I have a ASP.NET web application that is hosted on Windows Server 2012, IIS 8.
It uses Windows Authentication and Digest.
Now, the application runs fine. When the user opens the app the first time, he is prompted for the username and password. And then he logs in fine.
the problem is:
there is a page inside the application where the user will click a link and this link will target a Blank window (tab) in IE11. this new page will show some report. The user is supposed to view the report and then close the tab and continue working on the application. However, when the user closes this tab and try to use the web application, he is being prompted to enter the username and password again!
I tried something, on the new tab, i just modify the URL to navigate to the home page... it works fine from the tab.
as if this new tab got hold of the session that the user is on! and when you close the tab, you close the session with it.
how is that possible? and how can I fix it?
i have one website and i have added it in bookmark.
the situation is:
i opened the browser and website loaded from bookmarked location now the tab1 contains the website next i am logging it now it is in home page.
then i opened new tab but i didnt loaded any site. then i closed the tab1 then i opening the site from bookmark location. here instead of loginpage its directly loading the page which was in tab2.
when i can close the logged in tab then it should ask for login page in next tab
please help me guys how to achieve this
thanks
You need to logged out the user when page is closing.
You can use onbeforeunload event to manually logged out the active user.
Have a look at this article about Save Changes on Close of Browser or When Exiting the Page
Login cookie is shared in same browser tabs (sometimes even in same type of browser).
In other words, if you login in a tab in IE, you do not have to login in different tabs. Login cookie is still valid, and you are automatically login.
However, if you open same page in FireFox or Chrome, you'll still have to login even if you have logged-in in IE.
Updated: Please do not ask user to re-login if a tab is closed and reopen in different tab (in same browser). Even banking websites won't do that. (Of course, user'll need to relogin if the browser is closed.)
Is this possible? i have an exit button on my web application, originally, my client request that once they click the exit button, it should CLOSE the tab or the browser itself but afaik that's impossible since the web aplication can be opened via link in an email (outlook,yahoomail etc) via tag, so I suggested this alternative to simply just redirect to the Home (of the user, not the web app). the problem how to Redirect to USER's home page. TIA
if (window.home){
window.home();
}else{
window.location='about:home';
}
Something like that would be my guess.
window.home() reference.
There is no way to detect user's existing settings for a home page. This is a security issue. You can always, however, close the browser window after the user is finished using your application.
JS: window.close();
Not sure that would be advisable (even if it were possible), as users can have multiple homepages. Usually, web applications have a log-out button which would log the user out and return to the application's main page (probably showing a log-in form).
I found out an issue at my client's site regarding single sign off. for ease of use, i keep the client site name simple.
We developed site1.com using ektron 8.2sp2 framework and when you log into www.site1.com, you can go into "My Page" link, which takes you to www.site2.site1.com, which is a single sign-on.
This page has a log out button, when clicked, it logs off the user from www.site2.site1.com and you have a 'home' link, which takes you to www.site1.com, to log off from there too.
But, if the user just logs off from www.site2.site1.com and closes the browser, and reopens the browser to go to www.site1.com, it takes the user to the login page of www.site2.site1.com
I am trying to figure out the best way to log off the user from www.site1.com also, when the user logs off from www.site2.site1.com
I dont have access to the source files for www.site2.site1.com So, could some one help me how i can redirect the user to logoff from www.site1.com ?
This happens only in IE 8 and Firefox 3.6 but chrome behaves wonderfully.
Thanks in advance.
i guess, the answer to this is FormsAuthentication.SignOut(); will take care of it.