seeing the cookie file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi;

I'm looking for the cookie in my personalfolder directory that I thought
this postback code should create.

Dim MyCookieCollection As New HttpCookieCollection
Dim MyCookie As New HttpCookie("LastVisit")
MyCookie.Path = personalfolderpath
MyCookie.Value = DateTime.Now().ToString()
MyCookieCollection.Add(MyCookie)
'? MyCookieCollection.Set(MyCookie)

What else do I need to do?

Thnx Segue
 
Turns out you can't set the path for a cookie - the path property is for

path=path; Setting a path for the cookie allows the current document to
share cookie information with other pages within the same domain—that is, if
the path is set to /thispathname, all pages in /thispathname and all pages in
subfolders of /thispathname can access the same cookie information.

Helps if you read about the object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top