WebServices
-
hi, I have created one webservice,in that webmethod i mentioned enablesession=false.eventhough i can able to access session values. this is the code public int applivar() { if (Session["name"] == null ) { Session["name"] = 1; } else { Session["name"] = (int)Session["name"] + 1; } return (int)Session["name"]; } REgards Jayabharathi
-
hi, I have created one webservice,in that webmethod i mentioned enablesession=false.eventhough i can able to access session values. this is the code public int applivar() { if (Session["name"] == null ) { Session["name"] = 1; } else { Session["name"] = (int)Session["name"] + 1; } return (int)Session["name"]; } REgards Jayabharathi
geeeeeeeetha wrote:
in that webmethod i mentioned enablesession=false
Where did you mentioned it ? In your given code block its not there. And If you don't want to enable session in web method, you do not need to mention the EnableSession=false, becuase this is the default value. Not Sure, why some one marked it as bad question !!
Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net | Follow Me @ twitter Read my Latest Article :Mastering Debugging in VS 2010