.NETGURU
How do browsers receive/send cookies?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngvb' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Peter Brunone (VIP)

When one makes an HTTP request and the server tries to set a cookie, is
there any way of trapping the value and using it in subsequent requests
(i.e. using a different HttpWebRequest instance)?

If not, how exactly does one set the CookieContainer property to enable
persistence of cookies between requests made by the same HttpWebRequest
instance? Basically I just want to be able to carry an AspSessionID cookie
around with me to simulate a single session; any thoughts?

Thanks as always...

Peter B.

Reply to this message...
 
    
Remas Wojciechowski
Peter,

a couple of weeks ago I had a similar requirement. I remember havin HUGE
problems with the CookieContainer. Huge = that property doesn't seem to work
(I can't remember whether it was the setting or the retrieving of cookies or
both). I don't have access to that code right now (I'll have it on Monday)
but if memory serves me well I checked/wrote adequate headers to simulate
the cookies.

Contact me on Monday if you don't have your problem resolved by then.

hth,
Remas
http://www.aspalliance.com/remas
----- Original Message -----
From: "Peter Brunone" <Click here to reveal e-mail address>
To: "aspngvb" <Click here to reveal e-mail address>
Sent: Friday, December 14, 2001 5:38 PM
Subject: [aspngvb] How do browsers receive/send cookies?

[Original message clipped]

_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com

Reply to this message...
 
    
Ryan Simmenb
Can you please post or email me the solution you've found? We are having similar problems with CookieContainer.

--------------------------------
From: Ryan Simmenb
Reply to this message...
 
 
System.Net.CookieContainer
System.Net.HttpWebRequest




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification