Fardreamer
New Member
Im sure it has nothing to do with persistance across Multiple Computers but seems quirky that a second website visit, would trigger a refresh of question & answers that are dynamically loaded to be displayed within a Ajax update panel.Session Interaction and loggingWeb.Config:\[code\] <sessionState mode="InProc" cookieless="UseCookies" timeout="20" />\[/code\]Global.asax:\[code\]Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) Session.Add("test", "true") 'Used only to create a static Session ID for references. If Globals.Quizzes Is Nothing Then Globals.Quizzes = New Dictionary(Of String, classes.Quiz) End If If Globals.Quizzes.ContainsKey(Session.SessionID) Then Globals.Quizzes.Remove(Session.SessionID) End If Globals.Quizzes.Add(Session.SessionID, New classes.Quiz(WebConfigurationManager.OpenWebConfiguration("~")))End SubSub Session_End(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the session ends If Globals.Quizzes.ContainsKey(Session.SessionID) Then Globals.Quizzes.Remove(Session.SessionID) End If Session.Remove("test") Session.Abandon()End Sub\[/code\]Globals.vb\[code\]Module Globals 'Dictionary Collection of type (SessionID:String, Quiz:classes.Quiz) Public Quizzes As Dictionary(Of String, classes.Quiz) Public Property Quiz(session As String) As Quiz Get Return Quizzes(session) End Get Set(value As Quiz) Quizzes(session) = value End Set End PropertyEnd Module\[/code\]I have a Master Page with an UpdatePanel that is used to countdown a number of minutes, based on a Database value, and is AsyncPostBack triggered off a Timer Tick event (Interval=1000)The Content Page has a different UpdatePanel wrapped around the Question & Answers for the site, and also has a AsyncPostBack trigger registered (through the codebehind) to the built RadioButtonList's SelectedIndexChanged event.If only one person is accessing the site, then there is no problem. As soon as another user accesses the site, is when the Questions & Answers get reshuffled in the Quiz object, which then reshuffles their display and basically causes Questions that have not been answered to be displayed either above the users current position or below. The Answers that have been selected already, do not change but the order of the Answers is reshuffled. The Randomization of the Q&A is rooted at the SQL Server side, via SProc.Question:[*]Any suggestions for fixing this? If it matters any, i also incorporated PageRouting for the site.