Asp.net - Closes The Browser The Flag Is "1"and User Is Locked?

Nov 22, 2010

We have a web application with feature for logging in with credientials The important requirement is once the user logs in he is not allowed to login from any other system or even another browser on same system We used following solution which is mssql based : We have kept " Is_Loggedin" as a column with data type "bit" in a table. when a user logs in we set the flag as "1" sowhen someone tries to log again ,the system is showing the error "The user is already logged in"When user logsout bit turns to "0"indicating user logged out. However this logic is failing in following scenarios Problem scenario:When user closes the browser the flag is "1"and user is locked in or situations when user gets system problem and unable to log out.

View 5 Replies


Similar Messages:

User Controls :: How To Insert Time Of Session End When User Closes The Browser

Jan 14, 2014

I have written a SP which maintains users log in and log out history,it works fine when any user logs in or clicks on log out, problem is that as per need its not to allowed  to keep the screen idle for 1 minute or more then in the log out column Null value is passed.

SP

Create proc usp_trackuserlogindetails
@username varchar(50) = null,
@command int = 0
as
BEGIN
if(@command = 0)
begin
insert into userlog (USERNAME,LOGIN,LOGOUT) values (@username,Getdate(),Null)

[Code] ....

Here when user manually clicks the log out button then 1(table above) is the output.

When user leaves the screen idle then after 1 minute the page goes to the Login.aspx page if the user tries to do something on the current page,here 2(table above) is the output can i store some hard core value instead of Null like Session expire or the exact session expires time.

View 1 Replies

How To Run Global Function Which Will Run Even When User Closes Browser

Mar 9, 2010

I have an application which works as follows:

Users will purchase Items and as soon as it reaches the products min value it will mail and process to all people who purchased in past but not processed as the min value not reached.

Let's suppose there is products called PRD01 which has min value of 10. A person (Per1) purchased 3 qty but it will not processed immediately as the min value not reached. Now another person (Per2) purchased 7 qty since it has reached the min value it should mail the Per1, Per2 confirming their order.

I have created a function which whill check if the MinValue reached Once the person does checkout. User Order should be processed imediately and if the Min value reached he should be mailed even he has closed the browser.

View 3 Replies

C# - How To Kill The Session When User Closes The Browser Without Logout

May 26, 2010

I am developing one aspnet application in that i am using Sessions. if user login into the application and click on logout here i am closing session.

suppose if the user doesn't click on the logout and he close the browser. how to kill the session when user closed the brower without logout

View 3 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

Remove All Sessions Once The User Leaves The Application/site Or Closes The Browser?

Apr 9, 2010

Is there anyway to actually remove all the sessions once the user leaves the site/application or when he/she closes the browser?

View 11 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

Web Forms :: Store Logout Time In Database When User Closes Tab Or Browser

Jun 16, 2015

I want to kill the session on the browser closing or tab closing and store the Logout time in database using Asp.Net.

I have coded that code in Global.asax page which works only when we Click on Logout Button .but it's not worked on the tab closing /Browser closing.

void Session_End(object sender, EventArgs e) {
SqlTransaction transaction = null;
using (SqlConnection con = new SqlConnection(conn)) {
con.Open();
SqlCommand cmd = con.CreateCommand();
transaction = con.BeginTransaction("Transactions");

[Code] ....

View 1 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

Security :: Automatic Expiration Of Forms Authentication When User Closes The Browser Windows Without Signing

Aug 28, 2010

can u tell me how to automatically sign out a user if he/she closes the browser window without signing out. I'm using Forms Authentication.

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

Browser Closes When A Value Is Picked?

Aug 9, 2010

My application is written VS 2008 and .net framework 3.5. Sometimes when a user picks a value in the drop-down menu, this action closes the whole window. I cannot repeat this error on my box, but one of my users gets it consistently. Have anyone ever experienced anything like this?

View 9 Replies

Web Forms :: Global.asax - Method Not Executed When Browser Closes

Dec 28, 2010

[Code]....

i am trying to do this is Global.asax file. but this method is not executed when the browser closes. or am i doing something wrong?

View 6 Replies

How To Reset User Who Is Locked Out

Apr 7, 2010

I am using forms authentication (built into ASP.Net) and allow users 5 attempts to login with an invalid password. After that they are locked out. How can I programmatically unlock someone?

[Code]....

View 1 Replies

Security :: How To Know User's Locked Out Or Not

Jul 19, 2010

What is the best way when using the ASP login to display to the user that they are locked out?I want the user to know that their account has been locked and action needs to be taken.

View 2 Replies

DataSource Controls :: The User Instance Login Flag Is Not Supported On This Version Of SQL Server

May 20, 2010

I have never created my own solution before now. I have always modified existing solutions and know how to do it. For some reason, this new solution isn't connecting to my SQL server correctly.

I am using VWD 2008 Express Edition.

I have MSSQL 2008 Developer Edition.

I have used aspnet_regsql.exe to create the tables in my SQL DB.

I have added the following to my webconfig:

[Code]....

But for some reason, when I try to use the Web Site Administration Tool it thinks it is not setup.

What am I missing?

View 1 Replies

The User Instance Login Flag Is Not Supported On This Version Of SQL Server. The Connection Will Be Closed?

Sep 4, 2010

I am using sql server fulll edition.any idea how should I solve this issue, I search on net but not found any helpful answer.

View 4 Replies

Web Forms :: Could Not Save - Currently Locked By Another User

Apr 14, 2014

I am using framework 4.0 and database is in access. I have saved data in database via admin panel. but when i am updating the existing data, it showing an error as below:

"System.Data.OleDb.OleDbException (0x80004005): Could not save; currently locked by another user."

View 1 Replies

Web Forms :: Setting Web Config For Sending Email Through 1and 1 Hosting?

Feb 21, 2011

I have mailbox with forward to gmail acound in 1and1 hosting

the code:

<system.net>
<mailSettings >
<smtp
deliveryMethod="Network" >

[Code].....

The code is not working and not bringing me an error.

View 4 Replies

Detecting If User Closes The Page?

Jun 7, 2010

Is there a way to detect if the user closes the browser/popup page? I am trying to implement a chat functionality by when the user closes the browser/page, I will update the flag in the database from active to not active. But I cannot seem to find a better way to handle that besides from detecting if the user closes the page.

View 13 Replies

Access :: Cannot Read The Record; Currently Locked By Another User?

May 14, 2010

I web application is in asp.net with Access databasesome times my application giving this error message "Could not read the record; currently locked by another user." or "Could not update; currently locked."I am using IDbConnection and IDbTransaction object.

View 2 Replies

Call A Server Method When A User Closes The Page?

Jan 4, 2011

I want to remove a temp file from the server after the user close the page (I assumed I don't have this callback on the server by default),

I tried to call a server side method using (ICallbackEventHandler implementation) when the user close the page, but the problem is that the server side method doesn't fire in this case (closing the page), it only response if the page still opened. and I don't prefer to stop closing the page until the server response and send its call back to close the page manually.

View 3 Replies

Why Might Membership.ValidateUser Return False When The User Is Approved And Is Not Locked Out

Jan 5, 2011

I know this looks similar to other questions here but I don't think my case is the same as theirs.

I have a website that uses the AspNetSqlMembershipProvider to validate users. I would like to use the same database from a console application. According to several articles on the web I can use the System.Web.Security.Membership class from outside ASP.NET by copying the appropriate sections from web.config to app.config. That is what I did.

My console appliction can get the user with the requested name and I can confirm that the user is approved and is not locked out but ValidateUser returns false for a correct username and password pair.

I have found articles where people have had trouble with migrating code which may be due to a machine key mismatch but have also found a reference saying that machine key is only used if the passwordFormat property equals encrypted whereas I am using hashed.

Is the issue that the two pieces of code - the website and the console app - are in different assemblies and the assembly name or other property is being used during password hashing? In both cases the application name property is set to /.

Should I continue with this approach or just access the database directly and hash the password myself?

View 2 Replies

Security :: User Account Was Locked With NO Recorded Failedpassword Attempts?

Feb 22, 2011

user phoned me and said he received an error when attempting to login stating that his account had been locked. I had to unlock the user account today manually through the user interface. Several hours later I had to do it again. Afterwards, when I looked at the aspnet_Membership table it showed NO failed login attempts. LastLockout date for that particular user was set to min date. FailedPasswardAttemptCount was zero. FailedPasswordAttemptWindowStart was min date. I then proceeded to fail logging with the users account name.

View 3 Replies

Asp.net - User Closes The Window Using Default Icon Provided In Fancybox?

Apr 18, 2010

I am using jquery.fancybox-1.2.1.js of fancy box in asp.net applicationQ1: In the base page i have datagrid and on combobox. on slection of combobox the datagrid is populated.From the datagrid I open the fancybox when user click on Edit link. I open new page likeIn EditProjectTask.aspx i have the controls in edible mode. Now if user closes the window using default icon provided in fancybox.then if user select some other option from combox the url changes into EditProjectTask?Task= 86Q2: #
From the # datagrid I open the fancybox when user click on Edit link. I open new page likeIn EditProjectTask.aspx i have the controls in edible mode. Now when user updates the the content I want to close the fancybox and also refresh the parent window. I have achieved this using
After update i #But it reloads all the page.Can I use some Ajax call.

View 1 Replies







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