By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

Session.SessionID not available inside new thread

P: n/a

I've got some ASP.NET code that spins off a couple of worker threads during
a button click event. These threads call a series of functions that log
their activity to a text file. For some reason,
HttpSession.Current.Session.SessionID is blank when accessed inside these
threads, but works fine outside them in the main button click handler.

I've looked at using ParameterizedThreadStart to pass the session ID to the
thread, but this would result in overloading 20-30 methods inside various
classes to pass this sessoin ID around so that it's available for my logging

Is there a better way?


May 30 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.