473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 2921
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 =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.