State Management :: 2 Users Getting The Same Page Instance?

Aug 3, 2010

We have a problem when 2 users from different machines click on button to open the same modal window at the same time from the same page, they see the same data, which are not suppose to be.

i do my checks and see that they are getting the same page instance , i see that the page.GetHashCode and the page.SessionID is same for both users.

View 2 Replies


Similar Messages:

State Management :: Session Variable And Multiple Web Application Instance

Oct 13, 2010

I have a web application using window authentication. There are a search page and a edit page in the application. In search page, user can enter some search criterias in the textboxes and the search result will be displayed in the gridview by clicking the "Search" button. User can select any row from the gridview and it will take him to the edit page. In the edit page, there is a "Back" button to take the user back to the search page. I use session variables to remember what the search criterias the user entered in the textboxes and what page number the user was in the gridview. So when the user goes back to the search page, the textboxes are pre-populated with the search criterias and the gridview is displayed in the correct page number.

The problem is: If user1 opened one browser window and did a search using search criterias1, then user1 opened a 2nd browser window and did a search using search criterias2. When the user1 went back to the search page from the edit page using the first browser window, all the textboxes and page numbers are from the 2nd browser window, instead of the 1st one. Can anyone explain this problem to me and how to prevent it? It will be helpful too if you can give me some links about the similar problem. I am thinking if the same user logged on two different machines and did the search on each machine, what is the result?

View 4 Replies

State Management :: Shoppingcart Instance, Items Crossing In Sessions

Jan 21, 2011

I built an intranet application using code from this project (link and more details below):

Everything seemed to work during testing, but when multiple people are using the shopping cart, items show up across sessions.

For instance, if two orders are created at the same time, an item in Order 1 will show up in Order 2 by hitting the shopping cart refresh button.

Order 1 and Order 2 are two separate computers and being used by two different logins. Cookies are enabled in the browsers.

when an item is added like this: ShoppingCart.Instance.AddItem(arryProductId(i))

Should it not add that to a unique instance of the cart and nobody else be able to see these items?

We are getting ready to deploy this and this is a major issue. Any help would be greatly appreciated.

-=-=-=-=-

http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=423

An instance of the shopping cart is created like this:

If HttpContext.Current.Session("ASPNETShoppingCart") Is Nothing Then
Instance = New ShoppingCart()
Instance.Items = New List(Of CartItem)
HttpContext.Current.Session("ASPNETShoppingCart") = Instance
Else
Instance = CType(HttpContext.Current.Session("ASPNETShoppingCart"), ShoppingCart)
End If

When I insert items, they are added like so:

ShoppingCart.Instance.AddItem(arryProductId(i))

View 1 Replies

State Management :: Session Time-out : Object Reference Not Set To An Instance?

Oct 26, 2010

I noticed that when i am debugging my web application in Visual Studio 2005 using IIS, after about 10-15 minutes of inactivity, when I do something in the application such as a postback, I get an immediate error saying: "object reference not set to an instance" and my code breaks somewhere.Is my assumption correct that this is because my session has timed out? ( i do have a 15 minute default session time)my next question is, how do I display or set a way so that like many other pages, when the session has expired, a message will say: "This page must be refreshed" or "Your session has expired, click okay to refresh page" and start over again?

View 1 Replies

State Management :: Transfer A Session Variable To A Completely New Instance Of Internet Explorer?

Jul 19, 2010

With-in my Web App, I would like to be able to create a completely new instance of Internet Explorer, keeping the original functioning as well. No problem doing a Response.Redirect or server.transfer to a new web page, but what I am trying to do here is to open a completely new explorer window. I would like to do so transferring a few session variables to it.

View 5 Replies

State Management :: Session Getting Shared Among Different Users?

May 19, 2010

[Code]....

Above is my configuration.

Because one user is getting the session values of other users due to some reason that I dont know .

View 3 Replies

State Management :: IIS Keeps Users Logged In Forever

Apr 22, 2010

I have created a simple website in asp.net using forms authendications but when I publish my website in IIS 6 on a Windows Server 2003 machine it keeps the users logged in for ever even though I have set the web.config to expire after 30 min. My website has 2 pages a login.aspx and a home.html. When I run the website in my development machine using the ASP.NET Development Server I have no problem the website works as expected meaning the users can not access the home.html unless the have been authendicated by the login.aspx page.

Also once loged in, after clearing the browser cookies the web site asks for login again which is again the behavior that I am trying to accomplish. However once the website is on IIS does not take in account the authendication that I have set up on my web.config. What is overriding my web.config? Do I need to make some changes to the global configuration of IIS?

View 2 Replies

State Management :: Conflicting Data Between Different Users

May 4, 2010

i'v an enquiry form, user is operator as Role users fill enquiry form (enquiry.aspx) and view enquiry list done by thmselvs in viewEnquiry.aspx page in GridView im testing using different users accssing this application same time The Problem:

user1 has done 10 enquiries, and in viewEnquiry.aspx able to see is 8 enquiries the 2 remaining enquiries is reflecting in user2's profile or (in viewEnquiry.aspx page as logged in user2) what i'v done: i'v used "public static string UserName;" in Global class file clGlobal.cs in App_Code when user done login successful i stored UserName = dr.GetValue(2).toString(); and clGlobal.UserName = "" on Logout and on master page Load of User im checking (if clGlobal.UserName == "") then redirct to Login.aspx

View 1 Replies

State Management :: Different Session Timeouts For Different Users?

Jun 22, 2010

I are building a web application which will be deployed to Windows Azure. I want user to set session timeout value which will be stored in Database. Currently I am aware of Web.Config method to set session timeout. i.e.

<sessionState
mode ="InProc"
timeout ="60"></sessionState>

Is there any method to set session timeout value according to User's Preference?

View 5 Replies

State Management :: Different Session Timeout For Different Users?

Jun 1, 2010

I have a default 30 min session timeout for normal users. Now i want to set 1 hour time out for admin users. Can someone guide me how to acomplish this.

View 4 Replies

State Management :: How To Get Total Time Of Users' Session

Apr 1, 2011

I totally have no idea on how to do this. How can I get the time everytime the user use my system. We are using AD account here so we don't have login and log out. All I want is as long as the user browse to my system whether he is working or it or not become away or any, I will record its time and save it in my database then accumulate all the time he spent in my system for admin reporting.

View 5 Replies

State Management :: Maintain Session On Of Users On A Webpage?

Oct 25, 2010

I have to maintain session of two users on a sigle page.And the path is. UserPath:

1.User logins with his credentials((We retrive their credentials from login table) .
2.He invites some of his friends for a birthday party.
3.And send an url link to share some of the gifts with them in which gifts are provided in Share.aspx page.
4.Userlogouts.

Invites path:

1.Invite logs in with his credentials(We retrive their credentials from invites table).
2.He is directed to go to Share.aspx and list the items he require.
3.And he logs out.

Now i have problem in maintaining session for both the user and invite. How can i maintain the session so,that the user can identify a particular invite from the list of invites an his chosen items.

View 1 Replies

State Management :: Count The Number Of Users Per Webpage?

Sep 27, 2010

I have a website that has 10 aspx pages in it, and I'm trying to count how many users are on any one page at a time, and display that number on the web page. I have set it up to use an Application object ("TotalViewers"), and initialize it to 0 in the Application_Start event handler of the global.asax file. My reasoning (probably way off base) is to increment the count on each page load, and then decrement the count on each page unload. The increment part works ok, but when I add the code in the page unload event handler to decrement, it seems that Unload happens before the Page is presented to the client, so the value always stays the same (adds one in page load, subtracts one in page unload).

How else can I track number of users on each page? (simply, becuase I am still a beginner). I have already done some google searching and haven't come up with anything useful.

All my pages are being navigated via a TreeView control.

View 6 Replies

State Management :: Can Run A Loop Like Foreach On All Of Users Sessions

Apr 23, 2010

I am saving for each user a session with information about his current page viewing.

Each time the user is moving to a new page, I am updating the session with the new page he is right now.

Now, my question is if I can make any loop over all of my users session and answer a question like: How many users are now on page "2.aspx" for example?

View 2 Replies

State Management :: Certain Users Losing Certain Session Variables?

Mar 14, 2011

There are a couple of user's experiences session variable loss after they've clicked a confirm button and their information is email via a relay hosting server. Below, I commented exactly where the session variables get lost.

What could be causing the session variable loss? So far, this only happens to a few users.

Part of the email that gets sent out:

[Code]....

Web config file:

[Code]....

View 4 Replies

State Management :: How Many Times Users Spend In Site

Jan 29, 2011

I need to save how many times (seconds / minutes) each user spend in my site from his enterance to my site till exit it. How can I do this?

View 9 Replies

State Management :: Track And Identify Users With Memcached

Jun 14, 2010

Track and identify users with Memcached

View 3 Replies

State Management :: Best Way To Store Users Mail Address?

Sep 8, 2010

I have some webforms and the main page grabs the users email address when they login and a UserID. It's not uncommon for the user to keep the web page open all day. Is it good practice to store the email address and ID as a session variable and up the timeout to say 10 hours? Or is there a better way? My concern is A) Session variables timing out before the user login timesout B) Doing this incorrectly.

View 12 Replies

State Management :: Authenticating Users In Multiple Subdomains?

Aug 31, 2010

I have a main website say www.main.com which is developed in asp.net. We have used forms authetications here.

Now the thing is I have a no of subdomains on the same server say domain1.main.com, domain2.main.com, domain3.main.com etc.

I had put some functionality there. What i want is when i redirect my users to the subdomains user has to log in again.

what are the method where i can preserve the users state in my subdomains also.

View 5 Replies

State Management :: Warning Users Before Session Timeout?

Aug 29, 2010

In my web application, I want to alert users 5 minutes before their session timeout. If the users want, they can either extend their session or ignore the mssage - in which case after session timeout they will be redirected to the login page (I'm also using forms authentication in my site, so have set the authentication cookie expire time to the session timeout).I know I can do the alert with window.setTimeout, but I want to get user's respond and refresh the page if they want a session extension. How can I do that,
in which event and whether I can do this in C# code behind. And also, should I implement this
in the base page or somewhere else? How can I implement the auto page refresh - should I use a hidden button and click it from Javascript?

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

State Management :: Users Getting Logged Out Because HttpContext.Current Is Null?

Aug 19, 2010

We've got a fairly large, complex web application that uses Forms Authentication to authenticate users. Throughout the application we store and retrieve information about users in the Session object, and in some cases in cookies. In a couple places we check for the existence of the context, and if it's null we send the user back to the login page to re-establish the session. Just a quick run-down of this web app: C#, .NET 3.5, IIS 6, ASP.NET State Service to manage sessionAs for the session timer, we use our own home-grown timer, which is basically a client-side timer, which is backed up by a check to the SQL database to see when their last activity was. This seems to work well for us. It's not perfect, but it allows us to notify the user before the session times out, and allows us to be certain we're not logging a user out before their 60 minutes of inactivity is up.What's happening is that certain users are being logged out after just a few minutes. We've eliminated the timer as a cause and believe what's happening is the HttpContext.Current is null, so the user is logged out. We do not know why the HttpContext.Current is null, and I understand there are many reasons that may occur. What I'm trying to figure out is, is there any way to re-establish the context once it is null? If not, is there anything I can do at this point other than have the user login again? We're also trying to figure out a better way of managing user information (preferences, roles, flags, history, etc), but everything needs context to use, right? Cookies, sessions, cache, etc. all require a response or request, correct? hope this makes sense, because I really need help with this. I've searched the forums here, and found many posts about HttpContext.Current going null, but not a lot of solutions for this...

View 14 Replies

State Management :: Session Values Are Not Getting Stored If More Users Access The Site

Apr 2, 2010

l am facing a problem with session.

If many users access the site, the session gets crashed and data which i store to access across pages is getting lost.

a best way to store data (as session does) so that i can use the data across my web application.

View 5 Replies

State Management :: Save Cookie When Users Marks The Remember Me Box But Its Not Working?

Apr 1, 2011

[Code]....

i'm using this to save a cookie when users marks the remember me box but its not working.

View 7 Replies

State Management :: Maintain Master Page Control State On Load Of Content Page?

Dec 30, 2010

I have created a matser page with a two radio buttons, text box and a button. Whenever user sets some values to these control and clicks the button, i will navigating him from one content page to another based on the data he has entered. The problem is after the content page load, the values selected/given in the controls(radio button, text box) are getting cleared.

Is there some way to maintain the values ?

View 8 Replies







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