Ask a Question related to ASP, Design and Development.
-
Ray at #1
Re: Strange cookie behavior
Maybe the remote server is in a different time zone.
Ray at work
--
Will trade ASP help for SQL Server help
"AHN" <anerse@excite.com> wrote in message
news:OjIuozacDHA.1532@TK2MSFTNGP10.phx.gbl...the> Please tell me somebody what causes the cookie set with
> <%
> Response.Cookies("blah") = "Blah blah"
> Response.Cookies("blah").Expires = DateAdd( "h", 1, Now() )
> %>
> work as supposed on my local server but fail on my site on Brinkster. Onthere,> next page it disappears if used with "Expires" attribute set, and isbe> if without. It was working some time ago. I was forced to reinstall my OS
> (W2k, IIS 5.0) since then and already a few days I have this problem.
>
> Here is what iis help says:
> "Expires Write-only. The date on which the cookie expires. This date must> set in order for the cookie to be stored on the client's disk after the
> session ends. If this attribute is not set to a date beyond the current
> date, the cookie will expire when the session ends.
> "
> It does not say I can't set the cookie for one hour. What's wrong?
> Thanks for any help.
>
>
>
>
>
Ray at Guest
-
Funky FormsAuthentication Cookie Behavior.
We are having a problem where the HttpCookie.Value for FormsAuthentication is different between when it is created in Login.aspx.cs and when it is... -
Strange Cookie
In my ASP application, I am giving provisions to my users to search for products based on the criteria furnished by them. I am doing this by making... -
#24713 [Opn->Bgs]: strange cookie behaviour
ID: 24713 Updated by: sniper@php.net Reported By: napalm at spiderfish dot net -Status: Open +Status: ... -
#24713 [NEW]: strange cookie behaviour
From: napalm at spiderfish dot net Operating system: redhat linux PHP version: 4.3.2 PHP Bug Type: Unknown/Other Function... -
Why strange IF...ELSE behavior
Hi all, I'm getting a strange result with the following IF statement: $bar = ($foo == 'last') ? true : false; In my script $foo normaly has... -
AHN #2
Strange cookie behavior
Please tell me somebody what causes the cookie set with
<%
Response.Cookies("blah") = "Blah blah"
Response.Cookies("blah").Expires = DateAdd( "h", 1, Now() )
%>
work as supposed on my local server but fail on my site on Brinkster. On the
next page it disappears if used with "Expires" attribute set, and is there,
if without. It was working some time ago. I was forced to reinstall my OS
(W2k, IIS 5.0) since then and already a few days I have this problem.
Here is what iis help says:
"Expires Write-only. The date on which the cookie expires. This date must be
set in order for the cookie to be stored on the client's disk after the
session ends. If this attribute is not set to a date beyond the current
date, the cookie will expire when the session ends.
"
It does not say I can't set the cookie for one hour. What's wrong?
Thanks for any help.
AHN Guest
-
AHN #3
Re: Strange cookie behavior
No it is not. I had that thought but checked it already a few days ago.
Anything else?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eBUPi6acDHA.2932@tk2msftngp13.phx.gbl...OS> Maybe the remote server is in a different time zone.
>
> Ray at work
>
> --
> Will trade ASP help for SQL Server help
>
>
> "AHN" <anerse@excite.com> wrote in message
> news:OjIuozacDHA.1532@TK2MSFTNGP10.phx.gbl...> the> > Please tell me somebody what causes the cookie set with
> > <%
> > Response.Cookies("blah") = "Blah blah"
> > Response.Cookies("blah").Expires = DateAdd( "h", 1, Now() )
> > %>
> > work as supposed on my local server but fail on my site on Brinkster. On> there,> > next page it disappears if used with "Expires" attribute set, and is> > if without. It was working some time ago. I was forced to reinstall mymust> > (W2k, IIS 5.0) since then and already a few days I have this problem.
> >
> > Here is what iis help says:
> > "Expires Write-only. The date on which the cookie expires. This date> be>> > set in order for the cookie to be stored on the client's disk after the
> > session ends. If this attribute is not set to a date beyond the current
> > date, the cookie will expire when the session ends.
> > "
> > It does not say I can't set the cookie for one hour. What's wrong?
> > Thanks for any help.
> >
> >
> >
> >
> >
>
AHN Guest
-
Brian Staff #4
Re: Strange cookie behavior
The Expires property on the Response object is a date - not a time...hence
it expires today.
from
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/htm/ref_vbom_resoccook.asp?frame=true[/url]
Write-only. The date on which the Cookie expires. This date must be set
in order for the Cookie to be stored on the client's disk after the session
ends. If this attribute is not set to a date beyond the current date, the
Cookie expires
when the session ends.
Brian Staff
"AHN" <anerse@excite.com> wrote in message
news:OjIuozacDHA.1532@TK2MSFTNGP10.phx.gbl...the> Please tell me somebody what causes the cookie set with
> <%
> Response.Cookies("blah") = "Blah blah"
> Response.Cookies("blah").Expires = DateAdd( "h", 1, Now() )
> %>
> work as supposed on my local server but fail on my site on Brinkster. Onthere,> next page it disappears if used with "Expires" attribute set, and isbe> if without. It was working some time ago. I was forced to reinstall my OS
> (W2k, IIS 5.0) since then and already a few days I have this problem.
>
> Here is what iis help says:
> "Expires Write-only. The date on which the cookie expires. This date must> set in order for the cookie to be stored on the client's disk after the
> session ends. If this attribute is not set to a date beyond the current
> date, the cookie will expire when the session ends.
> "
> It does not say I can't set the cookie for one hour. What's wrong?
> Thanks for any help.
>
>
>
>
>
Brian Staff Guest
-
AHN #5
Re: Strange cookie behavior
Thanks. I feel so stupid.
"Brian Staff" <brianstaff@[NoSpam]compuserve.com> wrote in message
news:u2CnkQpcDHA.2416@TK2MSFTNGP10.phx.gbl...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/htm/[/url]> The Expires property on the Response object is a date - not a time...hence
> it expires today.
>
> from
>
ref_vbom_resoccook.asp?frame=trueset>
> Write-only. The date on which the Cookie expires. This date must besession> in order for the Cookie to be stored on the client's disk after theOS> ends. If this attribute is not set to a date beyond the current date, the
> Cookie expires
> when the session ends.
>
>
>
> Brian Staff
>
> "AHN" <anerse@excite.com> wrote in message
> news:OjIuozacDHA.1532@TK2MSFTNGP10.phx.gbl...> the> > Please tell me somebody what causes the cookie set with
> > <%
> > Response.Cookies("blah") = "Blah blah"
> > Response.Cookies("blah").Expires = DateAdd( "h", 1, Now() )
> > %>
> > work as supposed on my local server but fail on my site on Brinkster. On> there,> > next page it disappears if used with "Expires" attribute set, and is> > if without. It was working some time ago. I was forced to reinstall mymust> > (W2k, IIS 5.0) since then and already a few days I have this problem.
> >
> > Here is what iis help says:
> > "Expires Write-only. The date on which the cookie expires. This date> be>> > set in order for the cookie to be stored on the client's disk after the
> > session ends. If this attribute is not set to a date beyond the current
> > date, the cookie will expire when the session ends.
> > "
> > It does not say I can't set the cookie for one hour. What's wrong?
> > Thanks for any help.
> >
> >
> >
> >
> >
>
AHN Guest
-
AHN #6
Re: Strange cookie behavior
Don't think you're right. Just read;
``If this attribute is not set to a date beyond the current date, the Cookie
expires when the session ends."
I could expect that it will be written, and thrown out with the end of the
session. Besides, its not logical, and also it WORKS on my local server as
its supposed to. The different timezone idea takes more water, but
<%Response.Write Now()%> returns the correct time from the big server out
there.
Thanks anyway. I found another way. I set the cookie and then keep track of
the time in some other file, which refreshes itself every 15 secs. As soon
as the hour is over, I kill the cookie with my bare hands. :)
Cheers
"Brian Staff" <brianstaff@[NoSpam]compuserve.com> wrote in message
news:u2CnkQpcDHA.2416@TK2MSFTNGP10.phx.gbl...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/htm/[/url]> The Expires property on the Response object is a date - not a time...hence
> it expires today.
>
> from
>
ref_vbom_resoccook.asp?frame=trueset>
> Write-only. The date on which the Cookie expires. This date must besession> in order for the Cookie to be stored on the client's disk after theOS> ends. If this attribute is not set to a date beyond the current date, the
> Cookie expires
> when the session ends.
>
>
>
> Brian Staff
>
> "AHN" <anerse@excite.com> wrote in message
> news:OjIuozacDHA.1532@TK2MSFTNGP10.phx.gbl...> the> > Please tell me somebody what causes the cookie set with
> > <%
> > Response.Cookies("blah") = "Blah blah"
> > Response.Cookies("blah").Expires = DateAdd( "h", 1, Now() )
> > %>
> > work as supposed on my local server but fail on my site on Brinkster. On> there,> > next page it disappears if used with "Expires" attribute set, and is> > if without. It was working some time ago. I was forced to reinstall myt> > (W2k, IIS 5.0) since then and already a few days I have this problem.
> >
> > Here is what iis help says:
> > "Expires Write-only. The date on which the cookie expires. This date mus> be>> > set in order for the cookie to be stored on the client's disk after the
> > session ends. If this attribute is not set to a date beyond the current
> > date, the cookie will expire when the session ends.
> > "
> > It does not say I can't set the cookie for one hour. What's wrong?
> > Thanks for any help.
> >
> >
> >
> >
> >
>
AHN Guest



Reply With Quote

