C# - Restrict Same User To Login From Different Machines

Jun 8, 2012

I have a ASP.Net Web application hosted on a server. I want to restrict same user to login on different machines over the network connection but with certain conditions to be satisfied. So I thought of adding three new columns to the User table so that we can track if same user is logged in on same or different machines.

Those columns are like :
IsLoggedIn : To check if the particular user is already logged in or not.
SessionID : To check if the same user instance is opened.
IPAddress : To check if the same user is on same or different PCs.

This should satisfy some of the below conditions, but it fails to satisfy some of them. Conditions are as follows :

Both computers are on the same LAN.
Each computer is accessing the application over the internet from different locations.
Each computer is accessing the application over the internet from the same location.
Some of the application hosted which means that IP address alone is not sufficient to distinguish different computers.
Some users just close the browser without logging out. So sessions may not be ended at this situation.

How to accomplish all these conditions to satisfy with my application ?
Mainly 4th and the 5th .

View 1 Replies


ADVERTISEMENT

Restrict Windows Service To Start After User Login?

Apr 20, 2012

I have developed a windows services that Log On As "Local System" account with Statup Type "Automatic". I understand that windows services starts before user logins. But I want my service to start when ever user logs in.

View 3 Replies

How To Restrict User To Login If It Select The Page From Particular Directory / Folder

Feb 4, 2011

I have folder in my asp.net website i have following pages inside admin folder login.aspx, home.aspx, welcome.aspx..i want if user directly open page welcome.aspx or anyother page inside admin folder then it automatically redirect to login.aspx till they login using admin id and pass.how to do this setting in web.config...using authorization vb.net

View 1 Replies

Cannot Open Database Requested In Login 'Database1' / Login Fails / Login Failed For User 'sa'

Mar 1, 2011

I got the above error when i deploy my web application into windows server 2003. How do i resolve it? [code]

View 3 Replies

Error: "The Query Builder Failed. Cannot Open User Default Database. Login Failed. Login Failed For User <User Name>"

May 8, 2012

I'm using Visual Basic Express 2010 and SQL Express 2008 in Windows XP. At first I couldn't add a datasource (the .mdf file for the database) because of a "Operating system error 32" which I seemed to have resolved by giving myself full permissions for .mdf file (by right clicking on the file and going into properties and then Security) and restarting the SQL SERVER (SQLEXPRESS) service. The dataset for the database is in my solution explorer but when I right click on a table adapter to add a query and attempt to open up the query builder, I get the error in the title above.

View 1 Replies

How To Restrict User To Do Rating Only Once

Jan 15, 2011

How to restrict user to do rating only once..i m using AjaxControlToolkit Rating Control i VB.NET!

View 1 Replies

Restrict User From Opening Database?

Feb 14, 2010

I want that when the application exe file is running at that time the database associated with the application shud be closed....Means...I am using the .mdb file.

View 3 Replies

Restrict User To Select Not More Than 10 Asp.net Checkboxes?

Aug 9, 2010

How to restrict user to select not more than 10 asp.net checkboxes on button click event , if user select more than 10 checkboxes then alert box will pop up that you can not select more than 10 checkboxes

View 7 Replies

"The Query Builder Failed. Cannot Open User Default Database. Login Failed. Login Failed For User <User Name>"

May 8, 2012

I'm using Visual Basic Express 2010 and SQL Express 2008 in Windows XP.I created a database on my local PC HDD. At first I couldn't add a datasource (the .mdf file for the database) because of a "Operating system error 32" which I seemed to have resolved by giving myself full permissions for .mdf file (by right clicking on the file and going into properties and then Security) and restarting the SQL SERVER (SQLEXPRESS) service.The dataset for the database is in my solution explorer but when I right click on a table adapter to add a query and attempt to open up the query builder, I get the error in the title above.

View 10 Replies

Extract The Data From Machines Such As What User Machine Contained?

Jun 25, 2009

I have to make probram in vb.net which can use as a audit tool for computers.give the suggestions how can i extract the data from machines such as what user machine contained what type of softwares are in place.

View 1 Replies

Restrict A User Not To Open A Folder Using Program?

Dec 12, 2009

Is it possible to restrict a user from opening a sub folder like "permission denied" message should display while trying to open the folder. If yes, help me to solve this using vb.net in winform as well as using vb.net in asp.net

View 3 Replies

Restrict User From Opening Database - .mdb File ?

Mar 15, 2012

I want that when the application exe file is running at that time the database associated with the application shud be closed....Means...I am using the .mdb file...is there any way that when the application starts, if the user has opened the .mdb file then it shud be closed and also that when the application is running no one shpuld be able to open the .mdb file....

View 5 Replies

VS 2010 Restrict User Updating A Combo Box?

Oct 11, 2011

When the user open the form a textbox is displayed that picks up data from a table. If they click Change button a combo box is displayed that allows them to change what was originally in the textbox. The combobox is updated with whatever was in the textbox as shown below.This all works fine but the user can add something in the combo box that is not in the list which is bad.

cmbAddBook.Visible = True
cmbAddBook.Text = txtAddBook.Text
txtAddBook.Visible = False

[code]....

View 1 Replies

Cannot Restrict User To Provide Case Sensitive String

Feb 10, 2011

i have to find a string in an array. i am using array.indexof method to get the index of matched item. now problem is that indexof method comparison is case sensitive and i cannot restrict user to provide case sensitive string.[code]

View 3 Replies

Restrict User Not To Enter Data In Past (date)

Mar 15, 2012

If i double click on the dataset. i am not sure which statement to write to restrict the user so that he/she cannot enter the date in the past. i have droped the data set on the form and my data entry is through datagrid view.

View 13 Replies

Restrict User To Modify Field Selected In Combo Box?

Jan 7, 2012

If there are fields in a combo box as i press the drop down arrow. and if i select a field... then it should not b deleted using a backspace or anyother key..

View 3 Replies

Connect Client Machines With Sql Server Machines?

Dec 7, 2011

How to connect client machines with sql server machines ?Vb.Net as front end.

View 8 Replies

Asp.net - Validate User Role During Login Button Click Event In Login Control?

Apr 9, 2011

I have a login control in my asp.net webform i uses the roles manager...i have two roles admin and vendors i want when user enter username and password in login control then on login button click event it validates either the user is admin or vendors if vendor is admin then it will redirect to default.aspx other wise stay on login page with error. ...how to do this using vb.net ?

View 1 Replies

Login When User Type Password And They Press Enter That Login Code Can Be Activate?

May 29, 2009

how can i login when user type password and they press enter that login code can be activiate. What event can be using for this, i m using button_click event. need textbox typed value and press enter it should be login to that next form.

View 1 Replies

Login System - Make The Registered User To Login His Character Automatically?

Aug 25, 2010

Alright, So with this game I am Making with VB I am Confused on how to make the login system to make the registered user to login to his character automatically other then having to make a new character? Here is my login System code not much[code].....

View 3 Replies

VS 2008 Dll Login System - Make Another Interface Window That The User Can Login In

Oct 16, 2009

I'am trying to make a login system with the dll. I want the .dll file to have the password inside of it and make another interface window that the user can login in.

View 10 Replies

Restrict A User From Using A Double Clicking Event With Access Level?

May 10, 2009

I have a login page, which a user will have to enter username, password and accesslevel. Accesslevel is either 1 or 2. 1 for admin and 2 for users who are restricted from using certain functions. I have this module set up so that I can make use of the accesslevel throughout the forms that I have.

Module ModuleAccessLevel
Public AccessLevel As Integer
End Module

Arjun taught me how to make use of this module, so now I know how to restrict users from using certain buttons, toolstrips by doing the following:

[Code]...

View 3 Replies

Getting Error: "Cannot Open Database "MainDB" Requested By The Login. The Login Failed. Login Failed For User 'D630Admin'."

Mar 15, 2012

I created a SQL DB named MainDB.mdf and a small VB 2010 application with some forms and datasets.Everything was working OK until i got a new computer and re-installed Visual Studio 2010 and SQL server 2010 on it. I copied my DB from the old to the new computer and also copied by VB 2010 project to it. I used Windows Authentication to connect to the DB in the old computer and also in the new one, i am using different Windows user account names though.

I was able to connect to the DB in the new computer in the Server Explorer section, i created a new connection string to the DB and i can seed there is data in the tables. When i run my VB 2010 application created in the old computer get error:

"Cannot open database "MainDB" requested by the login. The login failed. Login failed for user 'D630Admin'."

I need to get rid of that error and be able to add/mod/del data from my DB using my VB application as i used to.

View 5 Replies

Error Login Failed For User ''. The User Is Not Associated With A Trusted Sql Server Connection

Oct 2, 2008

Dim sqlConn As New SqlConnection("Server=.\SQLEXPRESS;uid=;pwd=;database=ContactManager")
sqlConn.Open()

Above is my connection string, The programs runs up until sqlConn.Open() and then i get the same error, using no UID and Pass, or using a uid and pass.

Login Failed For User ''. The user is not associated with a trusted sql server connection

I have the SQL Servers authentication se to Windows Authentication and SQL Authentication. I'm using Visual Studio 2005 and SQL Server 2005.

View 10 Replies

Login Facility Reading In User Info From A Main User File?

Nov 9, 2011

I have been trying to solve this for 2 days now, every text book I own and google have been well and truely exhausted and I am still no closer to solving my problems.I have a login facility reading in user info from a main user file. This takes all info into a temp array and then splits usernames into a username file, passwords into a password file and a current score in a score file.

I have the login working fine and everything else in my program works as intended but touching up cosmetic aspects I want to add a Message box after login to say hello and display current score. This works great for the first name in the user file i.e - after login User1 welcome to the game. Your current score is 45 As intended.But the problem arises with any other users, my message comes out as

User2 welcome to the game. Your current score is 55 I do not understand where the random new lines are coming from. I have tried assigning the message as a variable and removing new line using

[Code]...

View 9 Replies

Login Failed For User ' '. The User Is Not Associated With A Trusted SQL Server Connection

Jul 29, 2011

i am having a console application. I am trying to connect to a sql server.

my connection string: Data Source=<Some server>;Initial Catalog=<some database>;Trusted_Connection=True.

when i am executing on my local machine it runs successfully. But when i am trying to run it on a server it is giving me the following error:

Login failed for user ' '. The user is not associated with a trusted SQL Server connection.

do i have to change my connection string? if so what it should be?

View 2 Replies

Get User Id Of The Current Login User In Application

Sep 16, 2010

In my application I have a several type of user could be log in. My purpose is to have a restriction with other menu to show on or off. In php I used a session to handle that user id. In vb.net how can assign user id and retrieve anytime I need it in every user that has been logged in, so that I can check the user type and do some action.

View 8 Replies

How To Know The User Login

Sep 20, 2011

Using VB.Net and SQL Server 2005 I have a login page in Windows based application, Once login, in the next page the user name should display in the menu. For Example, In a Admin Login, the Admin should display in the MDI From menu In a User Login, the User name should display in the MDI From menu...

View 2 Replies

Use Asp.net To Login For User?

Mar 14, 2011

I'm working on an app that aggregates information for the user (eg. get search results from yahoo, google, etc. and put them in one window), but requires a logon/ authentication. Do you guys know how this can be done with asp.net or other windows server languages?

View 2 Replies

Use User Name After Login?

Sep 11, 2009

How can I use user name in later forms?

I need to use that user name in one label in the next form how can i do that?

View 1 Replies







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