469,269 Members | 1,022 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,269 developers. It's quick & easy.

cannot access System.Web.HttpContext.Current.Session

I have a web service where I am using
System.Web.HttpContext.Current.Session. If I post an xmlrequest using
an aspx page, I can referrence the Session value, but If I am posting
it from say a vbs file, I cannot see the Session. What am I missing?
The class which has has this code has a reference to the System.web and
the web.config file in the application has the Session support turned
on.

Nov 19 '05 #1
3 2738
session support requires the browser support cookies (unlerss you use
cookieless sessions). the vbs script probably does not manage the session
cookies correctly. ass code in the vbs script to copy cookies for the last
response to next request.

-- bruce (sqlwork.com)

<go******@hotmail.com> wrote in message
news:11********************@g14g2000cwa.googlegrou ps.com...
I have a web service where I am using
System.Web.HttpContext.Current.Session. If I post an xmlrequest using
an aspx page, I can referrence the Session value, but If I am posting
it from say a vbs file, I cannot see the Session. What am I missing?
The class which has has this code has a reference to the System.web and
the web.config file in the application has the Session support turned
on.

Nov 19 '05 #2
Thanks for writing. I changed my web.config to say cookieless="true"
but I still see the same error. In fact if I put a stop in
Session_Start, I can see that it does not hit that function.

Nov 19 '05 #3
I found the problem: I did not have EnableSession=true on my WebMethod
:)

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Ben R. | last post: by
3 posts views Thread by Kaya | last post: by
4 posts views Thread by bob garbados | last post: by
3 posts views Thread by damianarielfernandez | last post: by
reply views Thread by Dmitry Bogdanov | last post: by
7 posts views Thread by bhavin30 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.