Re: Session("MyName") not working
From: Dino Chiesa [Microsoft] (dinoch_at_online.microsoft.com)
Date: 09/03/04
- Next message: DotNetJunkies User: "Re: How to call C from C# Web Service?"
- Previous message: Selden McCabe: "Process Running under Wrong Credentials"
- In reply to: Vincent Finn: "Session("MyName") not working"
- Next in thread: Vincent Finn: "Re: Session("MyName") not working"
- Reply: Vincent Finn: "Re: Session("MyName") not working"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Sep 2004 14:01:50 -0400
Yes, this is a FAQ.
check http://www.xmlwebservices.cc/index_FAQ.htm
and search for "Session"
-D
"Vincent Finn" <1@2.com> wrote in message
news:14jej0hcsen13nk4vj6npjfc80erpmaoe3@4ax.com...
> Hi,
>
> I am trying to store an object in the Session()
>
> I have a VB.Net control which is loaded in an asp page and then calls
> a function in my webservice (also written in VB.Net)
>
> The web service function has everything it seems to need the code is
> at the bottom of the mail
>
> The MSDN makes some mention of needing to do something on the client
> side with regards to cookies but I can't find a decent example
>
> Can anyone tell my what I need for the client side?
> or have I done something wrong in the WebMethod?
>
> Vin
>
>
> <WebMethod(Description:="Desc", EnableSession:=True)> _
> Public Function MyFn()
> If (Session("MyName") Is Nothing) Then
> Session("MyName") = DateTime.Now()
> End If
> Dim dt as DateTime
> dt = Session("MyName")
> End Function
>
- Next message: DotNetJunkies User: "Re: How to call C from C# Web Service?"
- Previous message: Selden McCabe: "Process Running under Wrong Credentials"
- In reply to: Vincent Finn: "Session("MyName") not working"
- Next in thread: Vincent Finn: "Re: Session("MyName") not working"
- Reply: Vincent Finn: "Re: Session("MyName") not working"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|