Close Session Of Same Application In All Tabs
In my web application, I use an exit button which runs session.abandon to close the session and then close the browser. It does not work with multi-tabs in IE. If I open my application in two tabs, I click on the exit button in one tab which abandons the session and close the tab. But the application in another tab can still work. Is there any way to close the session for this application in all the tabs?
View 3 Replies (Posted: 3 Weeks Ago)
Related Forum Messages For ASP.NET category:
How To Enable The Tabs With Different Session
When open different tabs in IE, those tab will share same session if user access same web app in different tabs.
Even the app has login page and user login in the web app in different tab.
So question is:
how to enable the tabs with different session? For example, I will login myapp in tab1. then open tab2 and login myapp in tab2 again. I want to tab1 and tab2 have different session.
Posted: Jun 19, 2009 03:12 PM
View 5 Replies!
Mvc - Session - User Can Open Multiple Tabs - Browsers?
I am a bit confused on how ASP.NET session works with my site, when a user opens up the site in multiple browsers, and/or multiple tabs. I see that after logging in with IE, i can open a new tab and not have to log in, and that if I log out of one tab, the other one will redirect to login after I try to do something. I also notice that if I log in with IE, i still have to log in with FF. My question - are session data shared between all of these sessions?
Posted: Aug 9 10 at 16:01
View 3 Replies!
Security :: IE8 Session, Logging Out From One Tab Causes Both Tabs To Logout, But Can't Log Back In?
I have a website built in ASP.net 3.5, using WinForms and AjaxToolKit. I have encountered a lost/corrupt session issue while using Internet Explorer 8.
1 IE8 Browser Open, 1 Tab
1. Login, Redirect to Landing, Logout - WORKS AS EXPECTED
2. Login, redirect to Landing, Close Window, Open Window, Logged-in already - WORKS AS EXPECTED (remember me enabled by default in code)
1 IE8 Browser, 2 Tabs
1. Login, Redirect to Landing, Open new tab, paste Landing page URL, Landing renders. - WORKS AS EXPECTED
- Logout from Tab 2, Tab 1 logs out after AJAX update. - WORKS AS EXPECTED
- Login from Tab 1, Redirects to Landing, then Redirects back to Login page - ISSUE
2. Close Window,Login,Redirect to Landing - WORKS AS EXPECTED
2 IE8 Browser, 1 Tab
1. Open 2 IE windows
2. In Window 1, Login, Redirect to Landing, then Redirects back to Login. - ISSUE
- Window 2 Paste Landing page URL, Landing page renders - ISSUE, STRANGLY NOW WORKS
This issue seems to only happen when I have multiple tabs open,or multiple rwssers open.Firefox and Chrome does not reproduce this issue and works as expected.How do I make sure the Cookie/Session is being handle correctly in IE8?
Here is my Login Auth:
Posted: Nov 10, 2010 08:27 PM
View 3 Replies!
Web Forms :: Session Sharing Across IE 7 Tabs And Mozilla Firefox 2.0,3.0 Browser?
Session is shared across IE 7 tabs and as a result the web application i am developing is behaving weirdly.
I googled a lot and found that the reason behind this is, cookies are shared across tabs and as a result session is shared(since session id is stored in cookies).
I have tried for the approach of cookieless session wherin session id is embedded in the url, but i dont prefer it.
The main reason is anybody can copy my URL and access my account since it contains session id. Also the url looks ugly.
I dont want to go for SQLServer Session state as i have a feeling that it cause a performance issue.
Posted: May 27, 2009 01:19 PM
View 1 Replies!
.net - How To Explicitly Close Session Of The Whole Browser
In my web application, I use an exit button which runs session.abandon to close the session and then close the browser.It does not work with multi-tabs in IE. If I open my application in two tabs, I click on the exit button in one tab which abandons the session and close the tab. But the application in another tab can still work.Is there any way to close the session for this application in all the tabs?
Posted: Mar 16 at 11:22
View 1 Replies!
Session Variables Get Lost On Browser Close
I'm creating a site. Below is my authentication tag and session tag in web.config
<forms protection="All" loginUrl="Pages/Log In/Login.aspx" name=".ASPXFORMSAUTH" cookieless="UseCookies" requireSSL="false"
defaultUrl="Pages/Common/Default.aspx" enableCrossAppRedirects="false" slidingExpiration="true" timeout="30"path="/">
<sessionState mode="InProc" timeout="30" cookieless="false" cookieName=".ASPSession"/>
And I have a custom Membership Providor....
<membership defaultProvider="SqlMemberShipProvider" userIsOnlineTimeWindow="15" hashAlgorithmType="">
Now in login page after firsttime login i set some session data... like
protected void Login_LoggedIn(object sender, EventArgs e)
Session["EMPLOYEELOGGEDIN"] = "Y";
Now say i close the browser... and next time when i open the site it takes me directly to the default page [Login_LoggedIn is not called accordingly]... because i'm already logged in for 30 mins acc. to configuration. but as my session id gets changed i can't access Session["EMPLOYEELOGGEDIN"] from any page in this time. It always returns null. But how do i get back the previous session for that person?
Posted: May 18 10
View 7 Replies!
Tabs Gets Loaded In The Application Start Up Itself?
<li><a href="somepage.aspx" title="some_page"><span>some_page</span></a></li>
<li><a href="somepage1.aspx" title="some_page1"><span>some_page1</span></a></li>
This function works for me but what happens is all the tabs gets loaded in the application start up itself.Which i don't want to happen. I want something like when the tab is clicked its content should get loaded.
Posted: Nov 27, 2010 04:01 AM
View 2 Replies!
C# - Kill Session On Popup Close Until The Closing Of Browser?
I want to show a popup about browser compatibility to the users visiting my website. I have used the popup in about 5 pages and it would be annoying for the users to see the same popup for more than once when they visit my website. So I am thinking to use a session and kill it when the user closes the poup. IT should not be shown until the browser is restarted.
Posted: Nov 4 10 at 19:40
View 4 Replies!
AJAX :: Kill Session When We Try To Close The Browser Without Logging Out In All Possible Ways?
need to kill the session and log the excetions when we try to close the browser without logging outwhen we try to close the browser using alt-f4, browser close(X) and right click on browser and close -> this all is done and is working fine.Now I need to handle the events 1. when we try to close the browser using Task Manager and kill the iexplore.exe.[ I need some event so that I can kill the session and log the event]2. when we try to close the browser using right click->close from windows task bar [I need some event.clientY so that I can kill the session]
Posted: Jun 11, 2007 03:56 PM
View 14 Replies!
MVC :: Jquery Tabs - Second And Third Tabs Do Not Fire Any Event On Button Click?
I have created an asp.net applications in which i am using jquery tabs to show say profile modifications information. I want user to see his profile info as well as he will be able to edit his details and save the information. for this purpose i have created an aspx page "MyProfile.aspx" and 3 ascx pages
say "page1", "page2" and "page3".
When i run "MyProfile.aspx" i can see all 3 tabs showing correct information. But problem is when i edit contents and try to save them back to the database. Contents on page1 are stored correctly. But page2 and page3 doest not fire any event. In all 3 pages I am using ajax n jquery to save data to database. and when i try to save contents of page2 and page3 nothing occurs.I am showing 3 tabs there of which first tab edits save the details but second and third tabs do not fire any event on button click.
Posted: May 24, 2010 08:51 AM
View 12 Replies!
Close A Web Application If Something Fails?
I have a web site that I am making data connections to SQL with and I would like to abort or close the application or close the window or close the browser session if the conection fails. My code is within a Class file (i.e. Connection.vb).
What is the best method to do this?
Posted: Nov 06, 2008 06:25 PM
View 11 Replies!
Close Web Application When 3rd Party Exe Closing?
I have a web application which loads from a link (tree navigator node) from some other system where the client side source of the other system is not available to me. I want to close the web application as soon as other system is closed.
I really don't know whethere this is technical possible or not.
Posted: Jul 29, 2009 04:01 PM
View 2 Replies!
State Management :: Session State Is Shared Between The Tabs?
We have a common problem with tabbed browsing in Internet Explorer is that the session state is shared between the tabs.
Due to this our user can face many issues like
1) Suppose user has opened a .aspx page for (clientId=1) and editing it in one tab and at the same time user is editing another client(ClientID=2). And both are using same in session.
Due to the session sharing when page will auto refresh the first tab with (clientId=1) will see the data of clientId=2.
Its clear that the session is shared between the tabs.
I have also implemented the ASP.NET 2.0 offered solution by way of the following config setting
<sessionState mode="InProc" cookieless="UseUri"></sessionState>
But still our users are facing this issue. I am looking for solution to disabled the Tab programaticaly and also i wanted to know how to clear the cache programatically.
Posted: Aug 06, 2010 05:44 AM
View 7 Replies!
SQL Server :: Close DB Connection Upon Application Termination?
The reason this question came up, is because if I run my website application with a SQL Server data store, and I terminate the browser (terminating the session), I try to open up SSMS to edit the DB. But I can't access the database because I believe there is still an open connection, even after application termination.
Is it recommended to close the database connection upon session/application closing? Or am I way off on what I'm thinking could be the problem?
Posted: Nov 19, 2010 12:39 AM
View 15 Replies!
Web Forms :: Closing Web Application With Logout Or IE Close Button?
I am working on a web application which is designed as master and web content pages. I designed login and logout for the application. When logout is clicked, it will call a method to clear the session variables and also some other methods which will clear some data in the oracle tables.
how can I do all the process of clearing session and other things when user clicks close button of internet explorer.
Also this application needs to be holding the session for more than 1 or 2 hours, so session should not expire till logout is clicked or close button is pressed.
Posted: Mar 04, 2011 09:56 AM
View 10 Replies!
State Management :: SQL Session State Lost After Close Browser?
I'm not sure if this is an error or is the right work mode for sql sessions.
I'm working now with Windows 2008 R2 Web Ed. and SQL Server 2008 Web Ed.
When I close my browse and open again a new browser window I need to login again in asp.net application and a new session is created in the sessions table in sql server.
It's this normal? I remember that with Windows 2003 and SQL 2005 this doesn't happend. When I closed my browser and open inmediately a new browser window my session was retained and I could continue working without relogin.
Posted: May 03, 2010 05:35 PM
View 3 Replies!