Session In Same PC With 2 Logins To The System?

Dec 19, 2010

What i want to ask is if a user has 2 accounts and
1)Log with the first account and a session variable is assigned, let's say var1
2)Maintaining his account as logged he logs in with another account on another page and again a session variable with name var1 is assigned.
Now the question is.Will the session on the user's first login will be changed?
Or this time the session behaves more like an expanded viewstate?
Remember the user is logging form the same computer,same open browser.

(i should be testing this but unfortunately VS2003 here).

View 11 Replies


Similar Messages:

Possible To Save Username In Session Variable When Users Logins Using Http Module

Aug 20, 2010

it possible to use an application event to save the username in a session variable? I would like to do something like this:

private void ContextOnBeginRequest(object sender, EventArgs eventArgs){
if (_context.Request.IsAuthenticated)
_context.Session["ID"] = _context.User.Identity.Name;
}

However in the above code I get an error saying that Session state is not available.

View 2 Replies

C# - Regular Logins And ActiveDirectory Logins In The Same .NET App?

Feb 16, 2011

I currently have an app which using Active Directory for authentication. In other words, the IIS virtual directory is setup Active Directory authentication and I do no have to deal with it at all. If you are on the domain, you can get in.

Some customers now also want to add a feature where they can log in using a standard userid/password combo. The scenario being a contractor coming in for a few days with their laptop and need access to the app. There is no point of creating an Active Directory account for such a person.

View 4 Replies

C# - Session Is Null When Inherit From System.Web.UI.Page?

Jun 16, 2010

I want to extend the System.Web.UI.Page-class with some extra stuff.
In the ctor I need the value of a session-variable.

The problem is that the Session-object is null...

public class ExtendedPage : System.Web.UI.Page {
protected foo;
public ExtendedPage() {
this.foo = (int)HttpContext.Current.Session["foo"]; // NullReferenceException
}
}

If I move the part with the session-object into the Load-Event everything works fine...

public class ExtendedPage : System.Web.UI.Page {
protected foo;
public ExtendedPage() {
this.Load += new EventHandler(ExtendedPage_Load);
}
void ExtendedPage_Load(object sender, EventArgs e) {
this.foo = (int)HttpContext.Current.Session["foo"];
}
}

Why is the Session-object null in the first case??

View 2 Replies

Session State Expiry In Content Management System

Feb 16, 2010

I am creating a content management system but there is one problem. What I want to do in my website is that when a user opens the website a new sessionid is created for that user, and when the user closes the website, the sessionid is cleared. How can I can do it?

View 3 Replies

Web Forms :: How To Make A Session Live Until System Shutdown

Sep 11, 2012

how to session keep live until system shutdown like asp.forum session

View 1 Replies

Error While Calling Web Service And Using System.Web.HttpContext.Current.Session

May 5, 2010

I created an AutocompleteExtender web service. I am getting a Object reference not set error in the peice of the code where I am referring to System.Web.HttpContext.Current.Session. Does anyone know why this is. And I am checking to see if it is != null before I reference it. But it crashes. Is there another way to pass another parameter to the web service?

View 2 Replies

State Management :: Session Variables Become Null When System Time Changes?

Jun 15, 2010

I need to refresh my webpage in case of a change in the system time. However I see that my session variables are becoming null when the system time changes. So I cannot perform the refresh action since my webpage requests a login.I am not setting the Session variables to null explicitly anywhere in the code. I can't seem to figure out how they are becoming null.

View 6 Replies

Preventing Multiple Logins?

Nov 24, 2010

I'm using the "cache tecnique" to prevent multiple logins. Reading in this forum I have read the following code:

Global.asax

[Code]....

Login.aspx
[Code]...This code works fine, If the user is already logged the second login is not permitted. But....

But if I make the logout (destroing all my session variables) and I try to login a second time... it's not possible, I read that the user is already logged!!I have also tried to clear the cache after the logout but nothing changs, even if it is illogic because the code must work even if I don't do the log off...

View 23 Replies

Security :: Only Allow 2 Logins Per UserAccount?

Aug 24, 2010

I am sitting with a senario where the client wants a User account only to be logged-on a maximum of 2 concurrent sessions. I am just putting this out to please ask the pro's what ways there are to do this?

I know that one way is to write the Userinfo into a database table ie. UserName,IpAddress and some other usefull info but then when it comes to the time when the user just closes the browser then how am i going to update the database table?

View 2 Replies

C# - How To Prevent Multiple Logins Of Same User Id

Apr 8, 2010

how to prevent multiple user to be logged in at a time using a user id ?

I searched the internet and found some ways but somehow they do not work in these situations:

If javascript in brower is turned off.

If user do not click logout and directly close brower.

View 4 Replies

Security :: Restricting Multiple Logins?

Feb 14, 2011

I have to allow only single user to access the site. We should not allow the same to user to access from another browser.

View 2 Replies

How To Allow Multiple Logins With Forms Authentication

Feb 16, 2010

I have a problem with membership authentication. I have two websites, website1 and website2, and both of them uses forms authentication with SQL membership provider (SQLEXPRESS). I have two scenarios:

Case 1:don't publish the website1 and try to login website1 with user1 -->Works ok
don't publish the website2 and try to login --> it displays the previously logged in user (Website1 user)-->Perfect

Case 2:publish the website1 and login-->works ok
publish the website2 and try to login--> it does not show up the site1's logged in user (No idea why)

then login into website2 and open website1-->it does not show up the website2 logged in user or any user...It looks like something wrong with cookies....

my web.config looks like this:<authentication mode="Forms">
<forms loginUrl="~/LogOn/LogOn" timeout="2880" protection="All"/>
</authentication> [code]....

View 2 Replies

Prevent Multiple Simultaneous Logins?

Feb 11, 2011

I am trying to prevent multiple simultaneous logins in my web application. I want to signout all/any previous authentications of a user when they login. Such that the current login remains the only one.

How do I go about calling FormsAuthentication.SignOut() for a particular user to invalidate any existing authentications.I have tried searching everywhere but no answers, only theories.

View 2 Replies

MVC :: How To Show Logins In A Modal Dialog

Nov 22, 2010

What is the easiest way to show logins in a modal dialog? I'd prefer using JQuery but whatever will show up the login page (in a partial?) whenever i decorate a method with [Authorize] would be great.

Ive been searching for the past couple hours and i cant find anything useable.

View 6 Replies

Authentication - 2 Separate Logins For Application?

Jul 21, 2010

I need to have 2 separate logins for my asp.net web site. Firstly I need to block access to the site entirely and show an unstyled log-in page (so it doesnt show the layout of the site).

This login is only needed whilst the website is in development.

Secondly, I need another login for a "members area" of the site. This is part of the functional site and will be permanent.

I'm at a loss as how to manage these 2 logins. I had first thought of using Windows authentication to allow preview access to the site and then forms authetication for the members part but according to IIS7 I "cant run Challenge based and Log-in redirect based authentication simultaneously".

View 4 Replies

Checking Of Facebook Logins In Web Application Using C#?

May 19, 2010

here i want to check facebook user id and password in my application. if facebook userid and password is correct, go to another page. if not, stay in that page only.

View 1 Replies

Mixed App Session Dies / Run The Site And Login To The System, An Error Message Is Displayed?

Dec 8, 2010

I have a site written for ASP.NET using a library written for ASP. The library resides in a dll and the site calls it to get the number of leave days an employee has left from a database. The dll was outsourced so I don't have access to the source.

I've set up the database and visual studio project locally. When I run the site and login to the system, an error message is displayed where the leave days should be displayed but the site runs normally. If I register the dll using regsvr32, the leave days are displayed when I login, but when I try to browse the rest of the site, the session is dropped and I'm automagically logged out. If I deregister the dll, then I can browse the site once I've logged in again but, once again, the error is displayed.

View 1 Replies

Web Forms :: Prevent Multiple Logins For Same User?

Jul 17, 2015

I just want to detect who came to login into site and if same login already logged in ,if same login previously exits then we need to logout the previous session , how to do it using asp.net c#

View 1 Replies

Security :: User Must Not Be Able To Do Multiple Logins From Diff M/c Using 1 Loginname

Jan 22, 2010

I am working on site which requires to control user from its misusing. Say a user is login from 1 m/c the other user should not be able to login from other m/c with the same account, but user must be able to do multiple login of same user from the same m/c.

First I was hoping using the IP address check I will be able to do that but due to proxy many user will have a same IP address.

View 1 Replies

Security :: How To Secure Site From Multiple Logins Of Same User Id

Apr 8, 2010

Requirment is to stop more than one user to login at a time using same user id.I am storeing user id in session. I searched the internet and found some ways but somehow they do not work in these situations:If javascript in brower is turned off. If user do not click logout and directly close brower.

View 3 Replies

State Management :: How To Avoid (Preventing) Multiple Logins

Oct 1, 2010

for avoid (Preventing) Multiple Logins in ASP.NET

View 5 Replies

Licensing - Secure An Application Using Limit For Number Of Logins?

Mar 23, 2011

I am trying to find a solution to control the number of logins on asp.net application. I need to install the application in the client server, and set the number of licences. e.g. only 10 users are allowed to access the app.

Every time someone tries to login I need to check how many user are logged in, compare with the total allowed then authorize that user to proceed.

I tried with Certificate, but I couldn't see where to match the number of logged in users with the max number of allowed user.

Also I would like to use the IP address as identifier, then if I open 3 browser windows, it count only one user logged.

Basically this web application will be sold by licences. We need to control the logins per computer, and not per user, and block logins if the limit of logins are reached.

View 3 Replies

DataSource Controls :: SQL Server 2008 Keeps Changing Password Of Logins?

Jan 3, 2010

When I create a new login for my SQL Server 2008 I also specify a password for this login. But when I, after the creation is done, check the login's properties the password is much longer than the one I specified. If I here change the password once again, SQL Server 2008 will automatically change the password for the login - again. ANd I don't know what the password that SQL Server keep putting for my logins, since the password consists of small black dots.

View 4 Replies

Security :: Prevent Multiple Concurrent User Logins For The Same UserName

Jun 2, 2010

My application is windows authenticated. The application pulls JUST the userName from the current windows account. Then I provide site access to this user depending on his account privileges. If his userName belongs to the admins list he is directed to admin screens. If his username belongs to users list he is directed to users screens. I handle this security in C# and some SQL tables(No membership provider and no Active directory security in the app).

I need to be able to prevent multiple concurrent logins for the same userName.

View 4 Replies







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