Re: [WebDNA] setcookie in IE11

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111269
interpreted = N
texte = Hi Thanks for your help! We tried several things (what you recommended) but were finally unable = to write a session cookie on IE 11. The solution was, to write a cookie which expires in 30 minutes. Now it = works on al IEs =85 hopefully! The date stuff is based on Terrys code on the WebDNA page, modified for = european date format. Thierry Here's the code that works for us: [function name=3Dcookie30min] [format days_to_date %A, %d-%b-%Y][math]{[date]}[showif = [math]{[time]}+{00:30:00}[showif [date = %Z]=3DEDT]-{01:00:00}[/showif][/math]<[math]{00:30:00}[showif [date = %Z]=3DEDT]-{01:00:00}[/showif][/math]]+{01/00/0000}[/showif][/math][/forma= t] [math time]{[time]}+{00:30:00}[showif [date = %Z]=3DEDT]-{01:00:00}[/showif][/math] GMT[/function] [Setcookie name=3Dourcookie&value=3D[url][url][encrypt = seed=3D7568][math]{[date]}[/math].[math]{[time]}[/math][/encrypt][/url][/u= rl]&expires=3D[cookie30min]&path=3D/&domain=3D[ListMIMEHeaders = name=3DHOST&exact=3Df][value][/ListMIMEHeaders]] > I think that the problem may be that you are hiding the path & the = domain as well. >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 2 Apr 2014, at 1:38 am, Thierry Almy wrote: >=20 >> Hi >>=20 >> We write session cookies storing the crypted value of the last page = load.=20 >> When loading the next page, we read the cookie and calculate the time = between the last load and decide to keep the visitor or kick him out =85 >>=20 >> In the past we were using something like this: >> [Setcookie name=3Dourcookie&value=3D[url][url][encrypt = seed=3D8674][math]{[date]}[/math].[math]{[time]}[/math][/encrypt][/url][/u= rl][hideif [ie]=3Dt]&expires=3D&path=3D/&domain=3D[ListMIMEHeaders = name=3DHOST&exact=3Df][value][/ListMIMEHeaders][/hideif]] >>=20 >>=20 >> Internet Explorer had a problem with the empty expires value, so we = hide it for them. >>=20 >> Since IE 11 this behavior has been changed and our cookies are not = set at all. >> Should we write our cookies completely different? >> Does anyone had the same problems? >>=20 >> In and elder email from Ken I read about the max-age tag =85 shall we = use it? >>=20 >>=20 >> Thanks for any input >> Thierry--------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] setcookie in IE11 (Thierry Almy 2014)
  2. Re: [WebDNA] setcookie in IE11 (Tom Duke 2014)
  3. Re: [WebDNA] setcookie in IE11 (Thierry Almy 2014)
  4. Re: [WebDNA] setcookie in IE11 (Stuart Tremain 2014)
  5. Re: [WebDNA] setcookie in IE11 (Tom Duke 2014)
  6. [WebDNA] setcookie in IE11 (Thierry Almy 2014)
Hi Thanks for your help! We tried several things (what you recommended) but were finally unable = to write a session cookie on IE 11. The solution was, to write a cookie which expires in 30 minutes. Now it = works on al IEs =85 hopefully! The date stuff is based on Terrys code on the WebDNA page, modified for = european date format. Thierry Here's the code that works for us: [function name=3Dcookie30min] [format days_to_date %A, %d-%b-%Y][math]{[date]}[showif = [math]{[time]}+{00:30:00}[showif [date = %Z]=3DEDT]-{01:00:00}[/showif][/math]<[math]{00:30:00}[showif [date = %Z]=3DEDT]-{01:00:00}[/showif][/math]]+{01/00/0000}[/showif][/math][/forma= t] [math time]{[time]}+{00:30:00}[showif [date = %Z]=3DEDT]-{01:00:00}[/showif][/math] GMT[/function] [Setcookie name=3Dourcookie&value=3D[url][url][encrypt = seed=3D7568][math]{[date]}[/math].[math]{[time]}[/math][/encrypt][/url][/u= rl]&expires=3D[cookie30min]&path=3D/&domain=3D[ListMIMEHeaders = name=3DHOST&exact=3Df][value][/ListMIMEHeaders]] > I think that the problem may be that you are hiding the path & the = domain as well. >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 2 Apr 2014, at 1:38 am, Thierry Almy wrote: >=20 >> Hi >>=20 >> We write session cookies storing the crypted value of the last page = load.=20 >> When loading the next page, we read the cookie and calculate the time = between the last load and decide to keep the visitor or kick him out =85 >>=20 >> In the past we were using something like this: >> [Setcookie name=3Dourcookie&value=3D[url][url][encrypt = seed=3D8674][math]{[date]}[/math].[math]{[time]}[/math][/encrypt][/url][/u= rl][hideif [ie]=3Dt]&expires=3D&path=3D/&domain=3D[ListMIMEHeaders = name=3DHOST&exact=3Df][value][/ListMIMEHeaders][/hideif]] >>=20 >>=20 >> Internet Explorer had a problem with the empty expires value, so we = hide it for them. >>=20 >> Since IE 11 this behavior has been changed and our cookies are not = set at all. >> Should we write our cookies completely different? >> Does anyone had the same problems? >>=20 >> In and elder email from Ken I read about the max-age tag =85 shall we = use it? >>=20 >>=20 >> Thanks for any input >> Thierry--------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Thierry Almy

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Strange behavior (2000) [url] link (1998) WCS Newbie question (1997) Rhapsody? (1997) Re:Listfiles (1998) WebCat2b12 CGI Mac - [shownext] problem (1997) WebDNA 5 & iTools 7 (2003) Can I invoke an ssi plugin from within a webcat page (1997) Exclamation point (1997) WebCat2b15MacPlugin - showing [math] (1997) Robert Minor duplicate mail (1997) Pre-flight public flag (1997) off topic - dna snipets (1997) [group] ? (1997) Which GUI HTML editors work with WC ? (1997) credit card authorization question (1997) unusual search problem (1998) sorting on date in search (2000) Last Minute addition to WildWebCAT98... (1999) taxRate is fine but taxTotal isn't (1997)