472,371 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

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 2866
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ben R. | last post by:
Hello, I've got a text-based .inc file that I'm using for my asp.net site's header. I thought about a user control, but if possible, I'd like to avoid it for simplicity's sake. In the main page,...
3
by: Kaya | last post by:
in the Global.asax Application_EndRequest prodecure the application do something and it works normally but when i try to use session it gives errors "Object reference not set to an instance of an...
4
by: bob garbados | last post by:
I'm trying to access the Session Object from a vb.net DLL in my asp.net application. If I use this code: System.Web.HttpContext.Current.Session("some_var") I get this error: BC30456:...
2
by: Daflookie | last post by:
For one reason or another I am unable to access Session contents in my asp.net application via the global.asax's Application_Error event. I can pull this exact code snippet below out of...
3
by: damianarielfernandez | last post by:
Hi group, I read a lot about this problem and all the same answers appears...Implement the IRequireSessionState or IReadOnlySessionState interface...but the same problem arrays'...null session. ...
0
by: Dmitry Bogdanov | last post by:
I have a problem - if I access the session in Web Service, as soon as I store anything in it, requests are no longer running in parallel - instead, they are queued and executed sequentially. Here...
7
by: bhavin30 | last post by:
Is there a way to obtain user information (using LOGON_USER server variables) when you have set up the security to Anonymous Access? I have tried setting the security to both Anonymous + Window...
0
by: bharathreddy | last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file. Using System.Web.HttpContext class. 1) For accesing session variables :...
1
by: in10se | last post by:
I have the following code in my global.asax file: void Application_Error(object sender, EventArgs e) { string ex = Server.GetLastError().ToString(); HttpContext.Current.Session =...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.