State Management :: Logging Out Users When User Opens Website In Two Browsers Or Two Tabs Of Same Browser?

Sep 20, 2010

We use windows authentication. User opens our website in tab1 and does some action but with out clicking on save he opens a new tab tab2 and opens the same website again. Now, if the user session in tab1 is active i need to warn users that the he is already logged on to application in some other browser and go to some log out page. But if the user session in tab1 is timed out then he must be able to continue with the website in tab2 as usual, but if he tries to do anything in tab1 he should go to session expired page.
I tried implementing it in following way.

I have a hidden field in each page which will be set to unique Id using GUID.NewID().
when user requests for a page the following code is executed.

[Code]....

View 1 Replies


Similar Messages:

State Management :: How To Get Unique Session Id That Generated Same For All Browser Tabs

May 19, 2010

How to get unique session id that generated same for all browser tabs and different and always unique when we close and open new browser in asp.net code.

View 2 Replies

Logging In To Website Opens A New Tab?

Mar 9, 2011

I've been working on my personal website as of late, and even thought it's not a big problem because I'm the only one that sees it, it's annoying nonetheless.

Whenever I go to my login page, it all works fine. If I enter a bad username/password, it will just print a simple text message error(intended). But, if I login correctly, then instead of redirecting to the root of my website as I intend, it will instead create a new tab in firefox and from there it will be in / (which is correct). The problem is why does it create a new tab? I didn't even think forms were capable of such a thing:

My full login page is at [URL] The gist of it is:

<form method="post" target="/login">
Username: <input type="text" name="username" /> <br />
Password: <input type="password" name="password" /> <br />
<input type="submit" name="Submit" />
</form>

And my server side code is also very simple:

if(RouteID=="login"){
if(AuthenticationModule.Login(Form["username"],Form["password"],false)){
//logged in correctly
Response.Redirect("/"); //just go to the root of my site
}else{
Write("You fail at life");
}
}

View 1 Replies

State Management :: Current Count Of Users On Website?

Apr 8, 2010

I would like to know if anyone knows of any way or software that will give me a count of the number of unique users to use my site in the last 5 minutes. I want to make some updates to my site during the day but I want to check to see if there is slow traffic then I can do it but if it's busy I can wait till a later time.

View 7 Replies

Mvc - Session - User Can Open Multiple Tabs - Browsers?

Aug 9, 2010

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?

View 3 Replies

State Management :: Forcing A User To LogOut On Closing The Browser?

Jan 19, 2011

writing code for Session_Start() and Session_End() such that whenever a user closes the browser without logging out he is automatically forcely logged out......And too when a user logs out normally he is re-directed to the LogOn page....

View 7 Replies

State Management :: How To Abandon The Session When The User Closes The Browser Window

Jan 7, 2011

How do I abandon the session when the user closes the browser window instead of pressing the logout button in ASP.Net 3.5 application.

View 5 Replies

State Management :: How To Capture Logoff Time When User Closes Browser

Apr 27, 2010

How to capture logoff time when user closes browser (ie 8, firefox) before sessionout time in a asp.net web application

View 3 Replies

State Management :: Session Dies When IE Opens Inline File?

Jul 8, 2010

I have an old application built with J#.Now I'm changing and adding some stuff to it, but when I test it, something happens that didnt before.The application is a document administration system with bills and other documents in PDF, XLS and DOC.When I open a PDF (which opens inline in an iframe in my bowser) the session somehow dies.ever happened before, just saw it today when I was making the changes to the app.If I send the header "content-disposition" as attachment, the session remains. but if I send it inline (which I need) it

View 1 Replies

State Management :: Session State Is Shared Between The Tabs?

Aug 6, 2010

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.

View 7 Replies

State Management :: Handle Session End Event For Web Application When User Closes His Browser?

Oct 20, 2010

I need to handle "session end" event for my web application when user closes his browser. Session is stored in Sql.

View 6 Replies

State Management :: Different Browsers Share Same Session ID?

Apr 27, 2010

I am using cookieless session manangement in ASP.NET 1.1. When the session is active and the user uses the same url in a new browser window or a new browser in different machine. since the session is active the url will validate itself. When user open new window with same session, i want show some custom meesage.

View 8 Replies

State Management :: Get The Chat Messages In Different Browsers?

Nov 25, 2010

user should be logged in one browser and chat with some one.the same user should be logeed in same id in any other browser the user can get that chat messages in this browser also. but i have some problem inasp.net coding i can get chat messages only in which browser i chat to some one. so i need that chat messges in another browser also. how can i write the coding for that.

View 1 Replies

State Management :: How Many Pages (with Names) Are Accessed By User In Website

Apr 13, 2010

How to get that how many pages accesses by a user in a website.

Actually, rather then putting code in each page I want some generalized method/technique that if user Logged to a website and during his Login period what was his activity and which page(s) he accesed.

Note:

1. My website pages are under MasterPage.
2. MasterPage has a MasterMenu.
3. For singlePage activity I used Page.GetType.Name

View 2 Replies

State Management :: Auto Signout When User Leaves Website?

Nov 25, 2010

is there a way to set code that automatically signs out the logged in user if they are redirected away from any file or directory under the main url?

View 2 Replies

State Management :: Access User Details Throughout Website Using Session?

Jul 28, 2010

when we accept user details in a login page and i want to use login details throughout the website.....can we do like this

session["uname"]=username;

string s=session["uname"].tostring(); this is in first page

string str=session["uname"].tostring(); this is my second web page

it is giving error

we can't access in other pages

View 5 Replies

Timeout - Automatically Logging Users Out Of Website On Close?

Mar 18, 2011

I recently inherited an asp.net website made up of multiple .aspx and .ascx pages and being rather new to web development and especailly asp.net. I have the site create a cookie upon login to automatically log users back in if the page times out on them while they're entering information.

I need the site to automatically log users out when the site is closed. Obviously using the me.close event on each page won't work because we don't want it to log people out every time they navigate to a new page in the site.

I've tried setting the timeouts in both IIS and in the files of the website to longer but it doesn't seem to have an effect.

Is there an easy way to automatically log users out when they leave the site but not when they navigate from page to page.

View 1 Replies

State Management :: Logged-in Page Displayed After Logging Out?

Jun 17, 2010

want to know, if the developer is logging out of the website , when .Net Custom Error pages are displayed. If the browser's back button is pressed, previously logged-in page is displayed again. Is there any session going on. How to remove all relevant cookies on logout.How to resolve this

View 1 Replies

State Management :: Session Countdown Time In Browsers Status Bar?

Mar 7, 2010

I want to show countdown time in the status bar of browser like: You session will timeout in 40:00 minutes. You session will timeout in 39:99 minutes. I mean it should countdown to 0 and popup a window if user click Popup's Ok button then it should show a redirected page. No ajax support required. I want manually coding therefore I am not allowed to write anything in web.config also.

View 49 Replies

Web Forms :: Close All Tabs And Browser For A Particular Website

Nov 22, 2015

I have three websites A, B & C. Website A & B opens in new tab when a link is clicked from website C. I want to close all the tabs when logout button is clicked in website C.

View 1 Replies

State Management :: Session - User Closes Browser, The Session Does Not Get Killed?

Jul 15, 2010

I have a website live in asp.net

now if user closes browser. the session does not get killed.

I spoke with friend and he said that cannot be done as sessions are on server.

but i see banking website who kills session when browser is closed.

View 10 Replies

Prevent Multiple User Logging Into The Same Domain Using The Same Browser?

Jul 10, 2010

So its a ASP.NET problem where two users using the same machine, same browser:

User 1 logs in the domain.
User 1 changes some data without saving it.
User 2 logs in the domain in a separate tab.
User 1 switches back to his tab and saves the data.
User 1 actually saved the data into User 2!!

This is caused by the following mechanism:

Different tabs in the same browser seems to share the same session id.

We are storing user auth in cookie and the cookie is shared between tabs (same domain)

Therefore, when User 1 request to save, it is recognized as User 2 since the cookie has been updated to User 2.

So I'm wondering if there's any other methods to prevent this from happening, other than:

1. Use cookieless session so the session is embedded in uri.
2. Always include a hidden field in page to indicate which user owns the page.

View 3 Replies

State Management :: Application State Is Not Cleared When Restart The Browser?

Feb 23, 2011

I am very new to asp.net. I developed one application. In that I have two pages. First page contains Application.Get() in page load event, here I read this Application variable, initially it returns NULL. If it is NULL, I make some buttons invisible. Then I jump to second page, in that page contains Application.Set(). Again I jump from second page to first page, this time Application.Get() is not NULL, I make some buttons visible.This is ok, if I execute the program in .net software.

But, when I publish this same program to web server like IIS, it is not working properly. After publishing very first time the first page returns NULL after that it doesnt return NULL even I closed the browser. I dont know why. In program, I used 2.0 framework. IIS also has 2.0 framework. Please clear this issue.

View 6 Replies

State Management :: SQL Session State Lost After Close Browser?

May 3, 2010

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.

View 3 Replies

Security :: Detect Multiple User Logging Into The Same Domain In One Browser?

Jul 12, 2010

Two users using the same machine, same browser.

User 1 logs in the domain.
User 1 changes some data without saving it.
User 2 logs in the domain in a separate tab.
User 1 switches back to his tab and saves the data.
User 1 actually saved the data into User 2!!

This is caused by the following mechanism:

Different tabs in the same browser seems to share the same session id. We are storing user auth in cookie and the cookie is shared between tabs (same domain)

Therefore, when User 1 request to save, it is recognized as User 2 since the cookie has been updated to User 2.

So I'm wondering if there's any other methods to prevent this from happening, other than:

1. Use cookieless session so the session is embedded in uri.

2. Always include a hidden field in page to indicate which user owns the page.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved