Re: Testing

new topic     » goto parent     » topic index » view thread      » older message » newer message
jacquesd said...
SDPringle said...

The RFC says that the domain should start with a dot and that the domain field is optional. I have a hunch. If we can have the domain field omitted instead of putting a slash in there I think it would work.

For my experiment to be tried every cookie routine called with "/" would need to be changed. Now, I need a webserver or a willing volunteer with a webserver running on a EUPHORIA capable machine to try it out.

It is dangerous globally searching and replacing "/" with ".openeuphoria.org". You can do it interactively.

Shawn Pringle

I will look at it this evening

jacques

Finally I localized the login bug. It is not in the euForum code but in datetime.e library. When in login form if the <remember me forever> checkbox is not checked, euforum code try to set a cookie that expires in 1 hour. the actual code is:

 
 expire = dt:now_gmt() 
  if web:post_has("login_forever") then 
    expire = dt:add(expire,1,YEARS) 
  else 
    expire = dt:add(expire,1,HOURS) -- this return date prior du current date!! 
  end if 
 

the dt:add() function return a date prior to actual date so the browser doesn't set the cookie as it is already expired. This is a bug to be solved by the datetime.e library maintainer.
For my part I will replaced all 1 hours cookies by session cookies. Those expires when the browser is closed. Login that is not set forever will last the browser session.

Jacques

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu