01.Blogs :
payat  

thesis problem

I havent bogged for a while because I'm really busy with my thesis.

I just want to ask any of you, if you have any idea. I tied using sessions in my web service the code is:

Session.Add("Credential", hash(uname, pword));

hash is a method i made.

there is a nullreferenceexception. can you guys help me on this.

posted on Monday, December 26, 2005 10:53 AM by payat

# re: thesis problem @ Monday, December 26, 2005 1:11 AM

First you should enable sessions for the web method. You do this by setting EnableSession to true for the WebMethod attribute. ([WebMethod(EnableSession = true)] in C#).
Then you have to make the web service proxy accept cookies. Right after you create the proxy set the property CookieContainer to an instance of System.Net.CookieContainer that will be the same for every web method call.

stalker


 
03.UPDATE CALENDAR :
<December 2005>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

05.MY LINKS :

07.Subscriptions :

Subscriptions


© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR