Response.Cookies("AnyCookieName").Expires 
Author Message
 Response.Cookies("AnyCookieName").Expires

Is your default language JScript?

Response.Cookies("AnyCookieName").Expires="Sat, 31 July 2000 23:59:59 UTC"

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5 > http://www.*-*-*.com/

Quote:

> Hello,
> Does anyone know how to use Cookies collection to set the expiration date of
> Cookie property?
> In MSDN articles the next ASP code is represented:

> <%
>   Response.Cookies("AnyCookieName") = "Chocolate Chip"
>   Response.Cookies("AnyCookieName").Expires = "July 31, 2001"
>   Response.Cookies("AnyCookieName").Path = "/"
> %>

> However, the storing of Cookie is not occured in the client Browser and
> Visual InterDev in the Debug session shows an error on
> "Response.Cookies("AnyCookieName").Expires..." line.
> I had used the convertation of date to GMT, but the trouble was keep.
> How to use the Response.Cookie(...).Expires... properly?
> OS: Windows 2000 Server.

> Thanks!
> Regards, Kuan



Wed, 22 Jan 2003 03:00:00 GMT  
 Response.Cookies("AnyCookieName").Expires
Hello,
Does anyone know how to use Cookies collection to set the expiration date of
Cookie property?
In MSDN articles the next ASP code is represented:

<%
  Response.Cookies("AnyCookieName") = "Chocolate Chip"
  Response.Cookies("AnyCookieName").Expires = "July 31, 2001"
  Response.Cookies("AnyCookieName").Path = "/"
%>

However, the storing of Cookie is not occured in the client Browser and
Visual InterDev in the Debug session shows an error on
"Response.Cookies("AnyCookieName").Expires..." line.
I had used the convertation of date to GMT, but the trouble was keep.
How to use the Response.Cookie(...).Expires... properly?
OS: Windows 2000 Server.

Thanks!
Regards, Kuan



Thu, 23 Jan 2003 03:00:00 GMT  
 Response.Cookies("AnyCookieName").Expires
Hello, Mark

Yes, it is, default language is JScript.
Nevertheless, I had put the format of the date "Sat, 14 July 2001 23:59:59
UTC", but the error is kept. Can you find any time for look a code in the
attach ASP file, please. Which any lines of code I must add? I had seen a
heap of the documentation and not find any practice example.

Thank you very mach.
Kuan

////////////////////////////////////////////////////////////////////////////
////////////

Quote:


>Is your default language JScript?
>Response.Cookies("AnyCookieName").Expires="Sat, 31 July 2000 23:59:59 UTC"
>--
>link to FAQ for OE 5.5

>Mark L. Ferguson    Please reply in Newsgroup
>marfer's notes for OE 5 >

http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm
Quote:


> Hello,
> Does anyone know how to use Cookies collection to set the expiration date
of
> Cookie property?
> In MSDN articles the next ASP code is represented:

> <%
>   Response.Cookies("AnyCookieName") = "Chocolate Chip"
>   Response.Cookies("AnyCookieName").Expires = "July 31, 2001"
>   Response.Cookies("AnyCookieName").Path = "/"
> %>

> However, the storing of Cookie is not occured in the client Browser and
> Visual InterDev in the Debug session shows an error on
> "Response.Cookies("AnyCookieName").Expires..." line.
> I had used the convertation of date to GMT, but the trouble was keep.
> How to use the Response.Cookie(...).Expires... properly?
> OS: Windows 2000 Server.

> Thanks!
> Regards, Kuan



Thu, 23 Jan 2003 03:00:00 GMT  
 Response.Cookies("AnyCookieName").Expires

I don't see any errors there.

I would try:

exp = new Date(2001, 6, 14, 23, 59, 59)

.....Expires = exp.toGMTString();

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:

> Hello, Mark

> Yes, it is, default language is JScript.
> Nevertheless, I had put the format of the date "Sat, 14 July 2001 23:59:59
> UTC", but the error is kept. Can you find any time for look a code in the
> attach ASP file, please. Which any lines of code I must add? I had seen a
> heap of the documentation and not find any practice example.

> Thank you very mach.
> Kuan

> ////////////////////////////////////////////////////////////////////////////
> ////////////



> >Is your default language JScript?

> >Response.Cookies("AnyCookieName").Expires="Sat, 31 July 2000 23:59:59 UTC"

> >--

> >link to FAQ for OE 5.5

> >Mark L. Ferguson    Please reply in Newsgroup
> >marfer's notes for OE 5 >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > Hello,
> > Does anyone know how to use Cookies collection to set the expiration date
> of
> > Cookie property?
> > In MSDN articles the next ASP code is represented:

> > <%
> >   Response.Cookies("AnyCookieName") = "Chocolate Chip"
> >   Response.Cookies("AnyCookieName").Expires = "July 31, 2001"
> >   Response.Cookies("AnyCookieName").Path = "/"
> > %>

> > However, the storing of Cookie is not occured in the client Browser and
> > Visual InterDev in the Debug session shows an error on
> > "Response.Cookies("AnyCookieName").Expires..." line.
> > I had used the convertation of date to GMT, but the trouble was keep.
> > How to use the Response.Cookie(...).Expires... properly?
> > OS: Windows 2000 Server.

> > Thanks!
> > Regards, Kuan



Thu, 23 Jan 2003 03:00:00 GMT  
 Response.Cookies("AnyCookieName").Expires
I don't know.
Did you test this ASP file? The error is appear:
HTTP 500.100 - Internal Server Error - ASP error
Type mismatch
It is appears for any format of date:
... = "July 01, 2001" and ... = exp.toGMTString();

what does it matter?
Thanks, Kuan



Thu, 23 Jan 2003 03:00:00 GMT  
 Response.Cookies("AnyCookieName").Expires

I don't know.
Did you test this ASP file? The error is appear:
HTTP 500.100 - Internal Server Error - ASP error
Type mismatch
It is appears for any format of date:
... = "July 01, 2001" and ... = exp.toGMTString();

what does it matter?
Thanks, Kuan

////////////////////////////////////////////////////////////////////////////
///////////////


I don't see any errors there.

I would try:

exp = new Date(2001, 6, 14, 23, 59, 59)

.....Expires = exp.toGMTString();

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 >
http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:
> Hello, Mark

> Yes, it is, default language is JScript.
> Nevertheless, I had put the format of the date "Sat, 14 July 2001 23:59:59
> UTC", but the error is kept. Can you find any time for look a code in the
> attach ASP file, please. Which any lines of code I must add? I had seen a
> heap of the documentation and not find any practice example.

> Thank you very mach.
> Kuan

////////////////////////////////////////////////////////////////////////////
Quote:
> ////////////



> >Is your default language JScript?

> >Response.Cookies("AnyCookieName").Expires="Sat, 31 July 2000 23:59:59
UTC"

> >--

> >link to FAQ for OE 5.5

> >Mark L. Ferguson    Please reply in Newsgroup
> >marfer's notes for OE 5 >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > Hello,
> > Does anyone know how to use Cookies collection to set the expiration
date
> of
> > Cookie property?
> > In MSDN articles the next ASP code is represented:

> > <%
> >   Response.Cookies("AnyCookieName") = "Chocolate Chip"
> >   Response.Cookies("AnyCookieName").Expires = "July 31, 2001"
> >   Response.Cookies("AnyCookieName").Path = "/"
> > %>

> > However, the storing of Cookie is not occured in the client Browser and
> > Visual InterDev in the Debug session shows an error on
> > "Response.Cookies("AnyCookieName").Expires..." line.
> > I had used the convertation of date to GMT, but the trouble was keep.
> > How to use the Response.Cookie(...).Expires... properly?
> > OS: Windows 2000 Server.

> > Thanks!
> > Regards, Kuan



Thu, 23 Jan 2003 03:00:00 GMT  
 Response.Cookies("AnyCookieName").Expires
I resolved this trouble, but in VBScript only yet
Thanks
////////////////////////////////////////////////////////////////////////



I don't see any errors there.

I would try:

exp = new Date(2001, 6, 14, 23, 59, 59)

.....Expires = exp.toGMTString();

--

link to FAQ for OE 5.5

Mark L. Ferguson    Please reply in Newsgroup
marfer's notes for OE 5.0 >
http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm

Quote:
> Hello, Mark

> Yes, it is, default language is JScript.
> Nevertheless, I had put the format of the date "Sat, 14 July 2001 23:59:59
> UTC", but the error is kept. Can you find any time for look a code in the
> attach ASP file, please. Which any lines of code I must add? I had seen a
> heap of the documentation and not find any practice example.

> Thank you very mach.
> Kuan

////////////////////////////////////////////////////////////////////////////
Quote:
> ////////////



> >Is your default language JScript?

> >Response.Cookies("AnyCookieName").Expires="Sat, 31 July 2000 23:59:59
UTC"

> >--

> >link to FAQ for OE 5.5

> >Mark L. Ferguson    Please reply in Newsgroup
> >marfer's notes for OE 5 >
> http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm


> > Hello,
> > Does anyone know how to use Cookies collection to set the expiration
date
> of
> > Cookie property?
> > In MSDN articles the next ASP code is represented:

> > <%
> >   Response.Cookies("AnyCookieName") = "Chocolate Chip"
> >   Response.Cookies("AnyCookieName").Expires = "July 31, 2001"
> >   Response.Cookies("AnyCookieName").Path = "/"
> > %>

> > However, the storing of Cookie is not occured in the client Browser and
> > Visual InterDev in the Debug session shows an error on
> > "Response.Cookies("AnyCookieName").Expires..." line.
> > I had used the convertation of date to GMT, but the trouble was keep.
> > How to use the Response.Cookie(...).Expires... properly?
> > OS: Windows 2000 Server.

> > Thanks!
> > Regards, Kuan



Thu, 23 Jan 2003 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Response.Cookie("string") interpretation

2. "Session variable expire by refreshing the page"?true:false

3. Propertie "Password Never Expires..."

4. "password never expires"

5. Response.Cookies Expires problem

6. response.write("<br>")

7. Response.contenttype = "application/vnd.ms-excel"

8. "Nested" response.write

9. confirm(message)-Coding "OK" responses

10. Disabling "BACK"/"FORWARD" buttons

11. CreateObject("Excel","//server"), MsgBox output

12. Problem With "window.showmodaldialog("")"

 

 
Powered by phpBB® Forum Software