Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

Send cookie with request

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 19 May 2005 11:56 GMT
I need to send a cookie with a web service call.
I create a cookie and a container, associate it with the web service call.

But when I check with the network monitor, there is no cookie in the http
stream attached.
What could be the problem?

PS: I don't need session

Thanks
Eric

      Dim si As New CLServiceIdentification
       'Add Cookie
       si.CookieContainer = pMPIData.GetSSOCookieContainer()

       ' Call WS
       _wsResult = si.identifyClient(.....)
[MSFT] - 20 May 2005 04:05 GMT
Hello Eric,

Have you check the Count property of CookieContainer? Maybe there is no
cookie in it yet. Also I suggest you may test sample in this article:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q820528

to see if you can get the cookie in the http stream. (Surely we don't need
session, but for a simple test, session can help us create a cookie)

Luke
Eric - 20 May 2005 23:39 GMT
Thanks for answering.

I think it has something to do with the domain property in the cookie.

If the domain isn't the same like the destination url, the cookie isn't
sent.

PS: I try to resend a cookie which i received from the server but nit in the
same session.
For that I reconstruct the cookie from scratch.

Eric

> Hello Eric,
>
[quoted text clipped - 7 lines]
>
> Luke

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.