CdnGal
11-24-2002, 06:57 AM
Hi, there
I am learning Javascript and ASP. I am working on a project in one of the books (it's an asp file, as instructed by the book) and it is asking to put a cookie expiration date of 7 days from now (not a specific date). Is there an EASY way to do this (I saw in the book that in VB it looks like it's simply Response.Cookies ("x").expires = Date + 7
But that's VB....
It appears I'm not so lucky as to have this work for me for this project, but worth a shot anyway! hee hee...Anyway, I've been searching the web, as well as this site, but can't really understand it. Is there any easy one-liner that will do this, as all the ones I've seen are decaring variables etc. and look quite complicated.
Thanks for the help!
I am learning Javascript and ASP. I am working on a project in one of the books (it's an asp file, as instructed by the book) and it is asking to put a cookie expiration date of 7 days from now (not a specific date). Is there an EASY way to do this (I saw in the book that in VB it looks like it's simply Response.Cookies ("x").expires = Date + 7
But that's VB....
It appears I'm not so lucky as to have this work for me for this project, but worth a shot anyway! hee hee...Anyway, I've been searching the web, as well as this site, but can't really understand it. Is there any easy one-liner that will do this, as all the ones I've seen are decaring variables etc. and look quite complicated.
Thanks for the help!