Tom Knowlton
asked on
WebServices and Session
[EDITED]
Please forgive the dumb question, but if a WebService is written under the same namespace as a WebForm -- can the WebService pass the Session variable to a static class that does the work?
What's happening is I am calling a web service from client using jQuery ajax / JSON and passing a bunch of info.
The webservice webmethod then calls a method in a static class, said method needs to put some data into Session, but I guess it can't. Session is not recognized.
Are there workarounds?
Please forgive the dumb question, but if a WebService is written under the same namespace as a WebForm -- can the WebService pass the Session variable to a static class that does the work?
What's happening is I am calling a web service from client using jQuery ajax / JSON and passing a bunch of info.
The webservice webmethod then calls a method in a static class, said method needs to put some data into Session, but I guess it can't. Session is not recognized.
Are there workarounds?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>>>have you set the attribute [WebMethod(EnableSession = true)] to the webmethod?
Nope, but when I did, it began working...thx!!!
Nope, but when I did, it began working...thx!!!
ASKER
Give me a little while and I'll come back and report on what I found.