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?
Related
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
I created a program in c# with webbrowser control that opens a web site and the user will be automatically logged in. That works. However the user should also browse through different web site sections and that's where I get a problem. There is a button on one page "print preview" and what it does in "normal browser" (IE or Mozilla) it opens a new tab and shows the contents. In my program it opens Internet Explorer (it is the default browser) and shows me login page again. Can anyone explain how to open a new tab in my webbrowser control (or new window) and pass login data.
Thank you.
It can't be done the way you are trying to do it. There is no concept of tabs in the web browser control. You can verify this by loading up an html page that makes calls to window.open() in javascript. If that call is made it will just launch an instance of IE that navigates to that particular URL.
Your best bet is to have multiple web browser controls and pass data between them. Either that or use HttpWebRequest.
Although, depending on what you are trying to do you may want to automate IE instead.
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.)
I am building a plug-in for IE browser. The feature i am working on requires to read the urls from user's open tabs and save it in a database.
I do know how to read the URL from the current open tab, but if there are several open tabs I do not know the way to navigate through tabs so I could save the rest of the Urls.
Does anyone know any useful Api calls I could use that would allow to navigate through open tabs in IE browser?
Thank you.
We have a ASP.Net system, when the user logs in he gets a cookie that includes the user name.
This works fine, when there is a single user using the machine.
Where we have problems is when a user is testing the system having many browsers open and logging in with many id's.
In this case all browser instances will be logged in with the last user to log in.
Is there are way to be logged in with different users to different browser instances / tabs.
Yes you can do this as long as each browser is different.
It won't work if you open 4 copies of IE, but it will work if you open one copy of IE, one of Firefox, one of Chrome, one of Safari. Cookies are saved per browser, not per browser window.