How you will handle session when deploying application in
more than a server? Describe session handling in a webform,
how does it work and what are the limits?
Answers were Sorted based on User's Feedback
Answer / frederickson
If we specify mode ="Inproc" session will store in
webserver itself under aspnet_wp.exe
If we specify mode = "Sqlserver" session will store in
sqlserver and it has to be serialized.
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / frederickson
we have Inproc server and outproc server
for storing session in different server we have to specify
in the webcofing mode="state" and state mode session to be
srialized. and it stores in aspnet_state.exe
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / adrien
You have 3 options.
1. Do not use any session variables.
2. Use a dedicated State Server (or state Server Farm)
3. Use SQL Server for state management
| Is This Answer Correct ? | 3 Yes | 1 No |
What does addressof operator do in background ?
What is the difference between string and string in c#?
What is the interface in c#?
What is inner class in c#?
About delegates and events?
What?s an abstract class?
What is the difference between IEnumerator and IEnumerable?
Is c sharp open source?
Can you put two constructor with the same structure in a class?
What is use of hashtable in c#?
Are arrays value types or reference types?
hi, I am a begineer to c sharp. I have written a code for finding out prime numbers. Can anyone identify what are the flaws in my code. Kindly donot complex the code or present logic because i am new to c sharp and just started learning programming language.Thanks in advance. class Program { static void Main(string[] args) { int a,b=1; a = int.Parse(Console.ReadLine()); c= int.Parse(Console.ReadLine()); if (a % b == 0 && a % 2 != 0 && a % a == 0) Console.WriteLine(a); else if (a % b == 0 && a % 2 == 0) Console.WriteLine(a%2); Console.WriteLine("Number is not PRIME"); Console.ReadLine(); } } }
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)