Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
QuestionIs it possible to share Session Variables across multiple threads? Pin
travich7-Jan-07 9:19
travich7-Jan-07 9:19 
AnswerRe: Is it possible to share Session Variables across multiple threads? Pin
Christian Graus7-Jan-07 9:30
protectorChristian Graus7-Jan-07 9:30 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
travich7-Jan-07 9:34
travich7-Jan-07 9:34 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Christian Graus7-Jan-07 9:38
protectorChristian Graus7-Jan-07 9:38 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Guffa7-Jan-07 12:04
Guffa7-Jan-07 12:04 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Christian Graus7-Jan-07 12:12
protectorChristian Graus7-Jan-07 12:12 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Guffa7-Jan-07 12:47
Guffa7-Jan-07 12:47 
AnswerRe: Is it possible to share Session Variables across multiple threads? Pin
Guffa7-Jan-07 12:02
Guffa7-Jan-07 12:02 
The web server only assures that the session object is valid while the thread responding to the request is running. If you hold on to the object after that thread has ended, there is no guarantee that it's still valid.

Use the Application object instead, or a static variable. But you have to use some kind of identifier to separate data for different threads.

---
Year happy = new Year(2007);

QuestionMFC to C#, form changing Pin
muharrem7-Jan-07 9:07
muharrem7-Jan-07 9:07 
AnswerRe: MFC to C#, form changing [modified] Pin
Mircea Puiu7-Jan-07 20:50
Mircea Puiu7-Jan-07 20:50 
QuestionTextBox problem Pin
CodeItWell7-Jan-07 8:34
CodeItWell7-Jan-07 8:34 
AnswerRe: TextBox problem Pin
Ed.Poore7-Jan-07 8:36
Ed.Poore7-Jan-07 8:36 
AnswerRe: TextBox problem Pin
tgrt7-Jan-07 15:46
tgrt7-Jan-07 15:46 
AnswerRe: TextBox problem Pin
Tyler457-Jan-07 18:23
Tyler457-Jan-07 18:23 
GeneralRe: TextBox problem Pin
Martin#7-Jan-07 19:51
Martin#7-Jan-07 19:51 
GeneralRe: TextBox problem Pin
CodeItWell8-Jan-07 0:52
CodeItWell8-Jan-07 0:52 
GeneralRe: TextBox problem Pin
Martin#8-Jan-07 1:08
Martin#8-Jan-07 1:08 
GeneralRe: TextBox problem Pin
Martin#8-Jan-07 1:10
Martin#8-Jan-07 1:10 
QuestionO/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
cebyrjoe27-Jan-07 7:36
cebyrjoe27-Jan-07 7:36 
AnswerRe: O/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
WillemM7-Jan-07 7:39
WillemM7-Jan-07 7:39 
GeneralRe: O/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
Larantz7-Jan-07 10:36
Larantz7-Jan-07 10:36 
AnswerRe: O/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
Pete O'Hanlon7-Jan-07 9:28
mvePete O'Hanlon7-Jan-07 9:28 
QuestionSquare root Pin
CodeItWell7-Jan-07 7:18
CodeItWell7-Jan-07 7:18 
AnswerRe: Square root Pin
Vega027-Jan-07 7:23
Vega027-Jan-07 7:23 
AnswerRe: Square root Pin
Larantz7-Jan-07 10:47
Larantz7-Jan-07 10:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.