tagged [state]

ASP.NET - Manual authentication system

ASP.NET - Manual authentication system We're developing an ASP.NET C# application, which will contain an authentication system that authenticates users in multiple levels (user, admin, super-admin, et...

AngularJS ui router passing data between states without URL

AngularJS ui router passing data between states without URL I am facing this problem of passing data between two states without exposing the data in the url, it's like user cannot really directly land...

How to get the session details in servicestack application from SQLServer using session id sent from mvc application?

How to get the session details in servicestack application from SQLServer using session id sent from mvc application? I have two applications deployed on different servers. 1) ASP.net MVC 4 web applic...

ASP.Net Session

ASP.Net Session I am wanting to store the "state" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are the pros/cons...

25 Sep at 13:44

Does asp.net MVC have Application variables?

Does asp.net MVC have Application variables? I am busy converting a web application to MVC and have some information saved to Application variables used across multiple tenants/accounts to make things...

15 Feb at 14:28

ServiceStack - System.Web.HttpContext.Current.Session is null

ServiceStack - System.Web.HttpContext.Current.Session is null I have legacy .net mvc application integrated with ServiceStack APIs, I need to get/set Session values from ServiceStack APIs in order to ...

Configure ASP.NET Session State at runtime

Configure ASP.NET Session State at runtime We have an ASP.NET web site that uses SQL Server session state. The state is configured in `Web.config` like: But there are three environments (development /...

19 Oct at 14:40

What is useState() in React?

What is useState() in React? I am currently learning hooks concept in React and trying to understand below example. ``` import { useState } from 'react'; function Example() { // Declare a new state ...

Algorithm for implementing C# yield statement

Algorithm for implementing C# yield statement I'd love to figure it out myself but I was wondering For example how does C# turn this: into this: ``` bool

Continuous Deployment with an ASP.NET website?

Continuous Deployment with an ASP.NET website? I have a website in C#/ASP.NET that is currently in development. When we are in production, I would like to do releases frequently over the course of the...

When the same user ID is trying to log in on multiple devices, how do I kill the session on the other device?

When the same user ID is trying to log in on multiple devices, how do I kill the session on the other device? What I want to do is to limit a user ID to only being able to log in to one device at a ti...

What is the purpose of IAsyncStateMachine.SetStateMachine?

What is the purpose of IAsyncStateMachine.SetStateMachine? Interface `IAsyncStateMachine` can be used only by compiler, and is used in generating state machine for async methods. Interface has `SetMac...

Where can I get a list of Countries, States and Cities?

Where can I get a list of Countries, States and Cities? This probably seems like a duplicate, since there are identical questions out there. Unfortunately all of the answers to all of these questions ...

1 Oct at 14:54

Getting session in .NET ASMX web-service

Getting session in .NET ASMX web-service I have an ASMX webservice hosted alongside my ASP.NET web app. Now, I need to get the users session into the Webservice. To test this I made this simple method...

27 Sep at 10:46

Thread lifecycle in .NET framework

Thread lifecycle in .NET framework The state of a thread in .NET framework is explained in [this link](http://msdn.microsoft.com/en-us/library/system.threading.threadstate.aspx). I recently saw this p...

11 Nov at 05:22

Using static variables instead of Application state in ASP.NET

Using static variables instead of Application state in ASP.NET I plane to use static variables instead of Application state in ASP.NET and am wondering if this is correct approach: ``` [Global.asax.cs...

17 Oct at 21:43

Is it possible to enable ServiceStack auth across a webfarm without a shared session state storage?

Is it possible to enable ServiceStack auth across a webfarm without a shared session state storage? With ASP.NET Forms Authentication, its possible to setup all the servers in a webfarm to share the s...

setInterval in a React app

setInterval in a React app I'm still fairly new at React, but I've been grinding along slowly and I've encountered something I'm stuck on. I am trying to build a "timer" component in React, and to be ...

30 Mar at 03:34

How can I save an activity state using the save instance state?

How can I save an activity state using the save instance state? I've been working on the Android SDK platform, and it is a little unclear how to save an application's state. So given this minor re-too...

What's the best way to detect the start of a session (similar to Global.ashx's Session_Start) when using ServiceStack SessionFeature?

What's the best way to detect the start of a session (similar to Global.ashx's Session_Start) when using ServiceStack SessionFeature? I've enabled Sessions support in service stack like: ``` container...

5 Apr at 20:22

How to get AdGroupAuthProvider worked with OrmLiteCacheClient?

How to get AdGroupAuthProvider worked with OrmLiteCacheClient? I want that application will be accessible for end user regardless on which server node LoadBalancer redirects. So, I would like to use O...

Detecting Session expiry on ASP.NET MVC

Detecting Session expiry on ASP.NET MVC I have built a shopping cart that uses Session State to keep the shopping cart data while the user is browsing the store. I have an issue where if I leave the b...

Sharing sessions across applications using the ASP.NET Session State Service

Sharing sessions across applications using the ASP.NET Session State Service I am trying to share sessions between two web applications, both hosted on the same server. One is a .net 2.0 web forms app...

19 May at 18:37

Share Session between two web sites using asp.net and state server

Share Session between two web sites using asp.net and state server I have two exactly the same web sites hosted in two different machines under IIS 7.5. ASP.NET state service is running on my machine ...

9 Aug at 09:57

Explicitly defining flag combinations in an enum

Explicitly defining flag combinations in an enum I was thinking of implementing an enum that defines the state of a game object, and I wanted to know if I could directly use flags within the enum's de...

20 May at 21:12