Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: cookies


Message #1 by "tom carr" <tomcarr@m...> on Fri, 15 Feb 2002 22:51:34
I am confused about reading cookes from different web pages in my 

application.  With the code below I can write and read a cookie just fine, 

but from other web pages I can not read it.  I may be confused about 

setting .path = "/".  I thought if I set that if would enable me to read 

the cookie from any page in the domain.  Is there anything I need to do to 

set path for the request ?



Response.Cookies ("RandomSessionID")=randomSessionID

Response.Cookies ("RandomSessionID").expires = date + 1

Response.Cookies ("RandomSessionID").path = "/"

cc = Request.Cookies ("RandomSessionID")

Response.Write "<p>when I read it it  = " & cc


  Return to Index