Hi @all
I have a big session problem with IE (11&Edge) and Lucee 4.5.3.018, where I need your help urgently.
Following situation. If I set in Application.cfc :
THIS.setClientCookies = false;
onSessionStart {
<cfcookie name="cfid" domain="#sCookieDomain#" httpOnly="#arguments.httponly#" path="#arguments.path#" secure="#arguments.secure#" value="#session.cfid#">
<cfcookie name="cftoken" domain="#sCookieDomain#" httpOnly="#arguments.httponly#" path="#arguments.path#" secure="#arguments.secure#" value="#session.cftoken#">
}
Do not look for cfscript syntax, my example should only show you where I set it. I always use TAG Syntax.
Now, I would believe, that cookies are set until session gets a timeout. Right? Not right?
But on next page .cfm page the cookies are missed and session data is away.
With Firefox it works perfectly.
That is a major bug in IE, isn’t it?
As workaround I set THIS.setClientCookies=true and then session will stay alive. BUT it is not set to httponly, path and secure. NO SECURITY - So no way for our customers! They will check it.
So you see my problem. Any ideas? How get I secure cfid & cftoken in IE Browser 11/Edge?
Sers
Clemens
Hi, thanks for answer.
With following syntax, which is yours in tag syntax, it works. For the moment … Tomorrow I will do same checks, cross-checks, re-checks and double-checks ;-)
<cfheader name="Set-Cookie" value="CFID=#sCFID#;path=#sPath#;#sHTTPOnly#;#sSecure#">
<cfheader name="Set-Cookie" value="CFTOKEN=#sCFTOKEN#;path=#sPath#;#sHTTPOnly#;#sSecure#">
And no, I do not use tag-syntax in a cfscript block. It was just easer to write in the mail J
I am not sure, or better see the benefit, to use it in onRequestStart(), when session and cookie is produced onSessionStart().
But I was surprised of the different COOKIE displays in IE (F12) and Firefox (F12 with Firebug). May there is the fault of my understanding.
Sers
Clemens
--
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/937cf172-c1a2-4dab-9091-b7f2874bf568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
As workaround I set THIS.setClientCookies=true and then session will stay alive. BUT it is not set to httponly, path and secure. NO SECURITY - So no way for our customers! They will check it.
I am not sure, or better see the benefit, to use it in onRequestStart(), when session and cookie is produced onSessionStart().
I’ve voted too… it would be a help and we could use the build in syntax, again.
Von: lu...@googlegroups.com [mailto:lu...@googlegroups.com]
Im Auftrag von Denard Springle
Gesendet: Donnerstag, 9. Juni 2016 03:38
An: Lucee
Cc: pe...@foundeo.com
Betreff: Re: [Lucee] On IE 11/Edge session cookies not secure and doesn't work.
Voted :)
--
Win a ticket to dev.objective from Lucee via Twitter, see
http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/76a9b811-9378-4fb7-a81c-6b7623217f62%40googlegroups.com.