Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

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?
SOLUTION
Avatar of regevha
regevha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Knowlton

ASKER

I think I may have figured it out.


Give me a little while and I'll come back and report on what I found.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>>>have you set the attribute [WebMethod(EnableSession = true)] to the webmethod?


Nope, but when I did, it began working...thx!!!