HttpHandler and Session State

6. March 2009

Its funny when you use a specific solution to solve many problems over and over and then you find out the limitation of your “genius” solution.  Kind of a let down huh?  What if you soon discover that your solution still is “genius” and solves the problem you thought you had.  that is a good feeling if I say so myself. 

I just started to "heavily using HttpHandlers that are dependant on the session state.  The site that I have been working on requires Session so there was no way around it.  The issue that kept coming up is that the context.Session that was getting passed to the ProcessRequest method was always null.  I needed the Session and the link I am including gave me the answer. 

To save you the read, you can use to Interface markers to tell IIS that you need the Session passed to your handler, IRequiresSessionState or IReadOnlySessionState.  Guess what, you know have the current Session being passed to your handler.   Hope it helps.

 

http://bytes.com/groups/net-asp/341797-session-object-null-http-handler

.Net, Visual Studio, Tips and Tricks, Microsoft , , , , ,

Comments

7/10/2010 2:00:52 PM #
I thought it was going to be some boring old post, but it really compensated for my <A href="http://findfreemagazine.com">free magazine</A>. I will post a link to this page on my blog. I am sure my visitors will find that very useful.
7/11/2010 2:53:19 AM #
Sorry, the message is removed
7/12/2010 11:41:49 AM #
Do you have problems with spammers?  I also use Blog Engine and I have some great anti-spam techniques; please Email me if you are interested in an exchange of techniques.
7/12/2010 1:58:25 PM #
It is so exciting to wear new jewelry!
7/14/2010 2:07:14 PM #
As new health care legislation hangs within the balance, thousands of Americans carry on to go without health insurance. Worse yet, as companies carry on to decrease jobs, individuals lose health care insurance coverage benefits too as the income required to buy an person policy.I'm fascinated to see how almost all of this kind of results turning out. Hopefully, us normal people aren't harm more than this particular.
7/14/2010 8:02:43 PM #
Well these interesting facts you have elaborated. Are really worth reading and sharing, I must say the way you have written this information has really helped me change the point of view about this resource, well I am sure there is lot to come, this topic cannot be satisfied by only this information. Will really wait for more information and elaboration on this. Nice information like this always wants you to go for more!
7/14/2010 10:01:46 PM #
amazon coupon codes
7/15/2010 5:10:10 AM #
I did like the article really much, was really informative and the best part was that only the required part was elaborated, to the point concise information always helps and keeps readers running around digging for the information’s will never require a reread. I really wish spammers read these articles and check how easy it is to be human and respect knowledge.
7/15/2010 7:09:41 AM #
Hopefully these acne tips will help me cure my case. It's so embarassing.
7/15/2010 10:50:28 AM #
BKR problemen? Nu Geld lenen zonder BKR toetsing? Op zoek naar betrouwbare aanbieders? Wij vergelijken banken die u toch kunnen helpen aan een betrouwbare
7/16/2010 3:15:21 AM #
This article is precise and justify the time it will consume while reading it. I will recommend every one searching this topic must have a look on this post. It has all the key points about the topic and covers all the aspects related to the topic.
7/16/2010 2:42:39 PM #
Hi, where did you get this information can you please support this with some proof or you may say some good reference as I and others will really appreciate. This information is really good and I will say will always be helpful if we try it risk free. So if you can back it up. That will really help us all. And this might bring some good repute to you.
7/17/2010 5:46:16 AM #
All I have to say about this post is that the topic chosen for discussion is one of the most challenging and is really very less talked about, I will help with some resources as well and I hope you will get enough information from the experts here. I will keep it concise and best to my knowledge. Please reply and post here if you really find this information helpful, also write about how you applied this, so that it can help other people as well. Thanks for starting the topic, here is what you need to do....
7/17/2010 2:18:50 PM #
Thank you very much, I did really like the response to my thread, and post replies have been really awesome. It could have never been better. Even hiring someone for this could have never met the experience all posters here have, thanks for saving dollars and adding really good information to this post to make things really easy and workable for us. Thanks again and great work.
7/18/2010 7:23:45 PM #
Hola.  I really like your blog.  Want to exchange links?
Amy
7/20/2010 3:23:36 PM #
I'm having a hard time with HttpHandler on one of my machines. I think my install is all borked or something :-\
7/21/2010 10:12:41 AM #
Thanks for the wonderful article.  Please meditate upon some of the many good things in this world, and share them with others.  It is a great blessing to share joy.  Try to do something good for someone else however you have the opportunity.  Make the world better for humanity.
7/24/2010 8:50:02 AM #
Hola.  I really like your blog.  Want to exchange links?
7/25/2010 9:30:57 AM #
Migraine is niet zomaar hoofdpijn. Migraine kan je leven totaal ontregelen en verzieken. De dreiging van migraine hangt dagelijks meer dan 10% van alle
7/26/2010 2:19:09 AM #
This is a fantatic site.  Good polished user interface and very informative blogs. I will be coming back soon, thanks for the great article.
7/26/2010 3:18:19 PM #
Pheromones!! After reading your post, pheromones,, I thought your thoughts were very naive but as I kept reading on, I do see you have a point. Keep on writing, I will keep on stopping over to read your new content.
7/28/2010 10:21:13 PM #
I am fond of your website, the way I am fond of air. Ok just kidding but really good thoughts though .
7/30/2010 2:51:17 PM #
I understand that there are a lot of spam lately. Apparently it’s pretty difficult for people to grasp the concept that relationships can be mutually rewarding. I can leave a meaningful fantastic comment and add content and substance to one of your articles and you will give me a link in exchange. There are too many takers out there and they aren’t willing to help people out. Take take take! .
7/30/2010 7:36:23 PM #
thanks for share. wait for more article

Regards
Replica Watches
7/31/2010 8:33:55 AM #
There are definitely a few more points to take into consideration, but thanks for sharing this info.
7/31/2010 11:19:35 PM #
Cheers for this article, It's great to see another BlogEngine user. Most users these days tend to use Wordpress, but in my opinion, BlogEngine.NET is the best system to use.
8/1/2010 1:15:11 PM #
U wilt geld lenen zonder BKR toetsing? De opties hiervoor worden groter, kijk verder en ontdek hoe u wél geld kunt lenen, snel & eenvoudig.
8/2/2010 6:34:56 AM #

<h1><a href="www.bestsuprashoes.us/"><strong>supra shoes</strong></a>, supra shoes</h1><br><br />
<h1><a href="www.bestsuprashoes.us/"><strong>supra sneakers</strong></a>, supra sneakers</h1><br><br />
<h1><a href="www.bestsuprashoes.us/"><strong>supra skytops</strong></a>, supra skytops</h1><br><br />


8/2/2010 4:53:11 PM #
good good good stuff. It was a nice read and a good way to kill time lol. But I love your post though.
8/4/2010 3:01:40 AM #
Thank you for this great homepage. I am trying to read some more posts but I cannot get your blog to display properly in my Mozilla Browser. Thanks again!
8/4/2010 11:50:41 PM #
I did like the article really much, was really informative and the best part was that only the required part was elaborated, to the point concise information always helps and keeps readers running around digging for the information’s will never require a reread. I really wish spammers read these articles and check how easy it is to be human and respect knowledge.
8/5/2010 1:50:43 AM #
I really liked your post and I will really say that the last post posted about this topic explained everything. And this post is really a booster. I will say that the starter of this post was really in need of this information and so was I, I did search for this topic, but bang you people posted about this. Thanks all for posting this thread and really making valuable contribution. It really will help me and the post starter as well!
8/5/2010 8:46:19 AM #
Awesome, I been looking for this information like from days. I been through lots of them to get my knowledge pool upgraded, well I must say, thi9s has really been awesome. Well I must say it will make my information really double. Good information like this is worth bookmarking and reading like 10 times! Thanks.
8/5/2010 11:49:52 PM #
Well I did start this earlier and got the same response, but the information submitted here looks more informative. I will say that people really are trying to help at there best and we always get to know some or the other thing good from each other. Thank you for starting the discussion again. And I will also post the earlier information here to make it more helpful for all. Thanks again and keep up the good work.
8/6/2010 9:09:42 AM #
I really enjoyed this. You can look your article comments. This information has really been helpful for most of the readers. I really appreciate the way you have written about this. I will really like to read more on this from you. I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.
8/6/2010 7:58:03 PM #
Internet is a cosmos of information; this article stands out among the rest, because of its content. This post is very interesting and you will get required information as a compact package. The writer has described in a brief and comprehensive way all the important aspects about the subject.
8/6/2010 10:20:07 PM #
Every one on internet searches for quality content. Its very unfortunate with most of the websites published posts that are boring and out of context articles, just to show that new material is being published. Contrary to that immoral practice, this article is a well-written article.
8/7/2010 5:58:59 AM #
Appreciating an article like this is really will make me happy. Spamming has really been an abuse, not only blaming the site quality but also wasting an article of such information, publishers are really happy when they get comments appreciating their hard work, But it hurts when its spammed just for promotion of a product but not the information.
8/7/2010 12:55:24 PM #
I am glad that I found this information. I am the type of person that loves to be inspired. Whether it be with regards to home life or business. This blog has some great posts and your posts inspire me to be productive and has given me ideas to move forward.
8/7/2010 4:38:35 PM #
This is the best technique to be followed, I must say that really being here and not using this will really be silly. Will you please reply with more information here? I think you have a good response and it will definitely help a lot. As this forum has really been a good platform for us all, contributing to this will really be healthy for our and your business as well. We all are waiting for a good informative response. Thanks a lot for this, waiting for more.
8/7/2010 9:00:22 PM #
Awesome post, very good points. Just being here has improved my knowledge and I am looking forward to it as a very good information hub, I will say there are hundreds of posts to really take a look at. For instance this post and the replies. I must say that I got the most of the information from the replies here. Points were really talking about the experience here. I love to be the part of this forum and gain some good information. Thanks!
8/8/2010 4:33:02 AM #
This post was very nicely written, and it also contains a lot of useful facts. I enjoyed your distinguished manner of writing this post. Thanks, you have made it very easy for me to understand.
8/8/2010 6:32:08 AM #
Good post, however only some of the points were actually treated really good, I think digging deep for the topic to make it more informative will really help, will be looking forward for more informative post than this. Will suggest some points which are to the best of my knowledge. This might help you bringing more information for all of us.
8/8/2010 11:05:33 AM #
There are several posts out there about this, I think taking there reference could have made this post or article really informative. I am not saying this information is not good. But I must say that the information provided here was unique, but to make it more near to complete, supporting with other previous information will have been really good. The points you have touched here are really important, so I will post some of the information here to make this really good for all the newbie’s here. Thanks for this information. Really helpful!
8/8/2010 2:34:31 PM #
Awesome post, very good points. Just being here has improved my knowledge and I am looking forward to it as a very good information hub, I will say there are hundreds of posts to really take a look at. For instance this post and the replies. I must say that I got the most of the information from the replies here. Points were really talking about the experience here. I love to be the part of this forum and gain some good information. Thanks!
8/8/2010 5:21:34 PM #
I really like this article, the content written in this article is very useful. I appreciate the write and his efforts to provide information about topic. It is a well-written article and is quite comprehensive and precise. The writer has command over the theme and it is a well-researched article. You will enjoy the content and can get information in easy and understandable way
8/8/2010 11:59:07 PM #
I really liked your post and I will really say that the last post posted about this topic explained everything. And this post is really a booster. I will say that the starter of this post was really in need of this information and so was I, I did search for this topic, but bang you people posted about this. Thanks all for posting this thread and really making valuable contribution. It really will help me and the post starter as well!
8/9/2010 11:17:16 PM #
Although I can't agree with all you said, I must admit I do love your style of writing.
8/10/2010 3:10:24 AM #
Your post really made me think, have you any further reading you would recommend?
8/10/2010 5:49:24 AM #
Established you being a fave so I'll; be back again
8/10/2010 11:29:53 PM #
Hoeveel kan ik lenen? (hypotheek). Wat worden mijn maandlasten? (hypotheek) ... Hoeveel hypotheek heb ik nodig? Hoe hoog is de boete die ik nu zou moeten
8/11/2010 2:13:25 AM #
Interesting, but not perfect.  When will we know more?  
8/12/2010 6:56:47 AM #
This is a great site.  Good clean UI and very informative blogs. I will be coming back soon, thanks for the great article.
8/12/2010 1:23:17 PM #
I love viewing this blogs articles, keep up the amazing work!
8/14/2010 4:11:39 AM #
i thought this was a really great post to read.  i'll check back for new posts by you!
8/14/2010 8:06:16 PM #
Pretty insightful post. Never thought that it was this simple after all.
8/17/2010 5:58:56 AM #
Hola.  You have a very cool blog.  Want to exchange links?
8/17/2010 7:39:25 PM #
When you open net, you are bombarded with millions of article. However, unfortunately most of them are just a piece of junk. It is difficult to even read first paragraph of such articles. However, this article is not like them. It contains quality content, which can bind you to finish till the last words.
8/17/2010 11:37:39 PM #
I really like this article, the content written in this article is very useful. I appreciate the write and his efforts to provide information about topic. It is a well-written article and is quite comprehensive and precise. The writer has command over the theme and it is a well-researched article. You will enjoy the content and can get information in easy and understandable way
8/19/2010 4:17:41 AM #
This post was very nicely written, and it also contains a lot of useful facts. I enjoyed your professional way of writing the post. You have made it easy for me to understand.
8/20/2010 1:07:54 PM #
What a terrific information.  Please think about the myriad blessings in this world, and share them with others.  It is a great blessing to pass along good things.  Work hard to provide something nice for others whenever you can.  Make everything more special for humanity.
8/20/2010 3:39:51 PM #
Thanks for this blog post, It was a great read which was extremely helpful.
8/21/2010 8:31:09 AM #
This is a fantatic web site.  Good fresh UI and nice informative articles. I will be coming back soon, thanks for the great article.
8/21/2010 1:31:15 PM #
Very nice entry.  Really appreciate the thoughts.  Thanks!
8/21/2010 6:32:59 PM #
Although I can't agree with all you said, I must admit I do love your style of writing.
8/22/2010 12:12:56 AM #
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post
8/24/2010 11:08:44 AM #
Our shop offers many famous Franck Muller Replica Watches. for example:Franck Muller The Casablanca Line Replica Watches,Franck Muller Casablanca Chrono Big Date SS Black Rubber, They are all wrist watches and you can buy one for your father to show your love ,moreover. no one could know it a replica one.
8/26/2010 2:36:21 AM #
After searching Google I found your site. I think both are good and I will be coming back again to you and them in the long term. Many thanks
8/26/2010 4:03:42 PM #
sagabindara salutes you all out there
8/30/2010 5:15:40 AM #
Thank you for another fantastic blog. Where else could one get this kind of information written in such a perfect way? I have a project that I am just now working on, and I have been looking for such info.
8/31/2010 4:56:46 PM #
the income required to buy an person policy.I'm fascinated to see how almost all of this kind of results turning out. Hopefully, us normal people aren't harm more than this particular.
9/1/2010 5:54:32 PM #
How's a goin,    I utterly coincide with you. Mine and my friends computer run so much easier with it on. It's unbelievable how much such a small task can make such a humongoues differance. In the begining I was warry about trying it out, but thanks to your post my worries was put to bed. Thanks
9/5/2010 6:54:42 PM #
I was wondering if you would like to be a guest poster on my website? and in exchange you could include a link your post? Please reply when you get a chance and I will send you my contact details - thanks.  Anyway, in my language, there are not much good source like this.
9/5/2010 7:29:46 PM #
I was wondering if you would like to be a guest poster on my website? and in exchange you could include a link your post? Please reply when you get a chance and I will send you my contact details - thanks.  Anyway, in my language, there are not much good source like this.
9/5/2010 8:49:56 PM #
Thanks for posting this. I really appreciate it.
9/7/2010 2:01:23 AM #
This post was very well written, and it also contains a lot of useful facts. I enjoyed your professional way of writing the post. You have made it very easy for me to understand.
9/8/2010 11:35:32 AM #
I have to say, as a lot as I enjoyed reading what you needed to say, I couldnt assist but lose interest after a while. Its as if you had an important grasp on the subject material, however you forgot to incorporate your readers. Perhaps you should think about this from more than one angle. Or possibly you shouldnt generalise so much. Its better if you consider what others may have to say as an alternative of simply going for a gut response to the subject. Take into consideration adjusting your personal thought process and giving others who could read this the benefit of the doubt.
9/8/2010 2:05:30 PM #
I must say, as much as I loved studying what you had to say, I couldnt help but lose interest after a while. Its as should you had a great grasp on the subject material, however you forgot to incorporate your readers. Maybe it's best to take into consideration this from a couple of angle. Or possibly you shouldnt generalise so much. Its better if you think about what others might have to say instead of just going for a gut response to the subject. Take into consideration adjusting your individual thought course of and giving others who may learn this the good thing about the doubt.
9/9/2010 6:31:00 AM #
Thanks for posting this. I really appreciate it.

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading