Issue 14 in iliadproject: Cannot create multiple cookies on some browsers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 14 in iliadproject: Cannot create multiple cookies on some browsers

iliadproject
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 14 by canol.gokel: Cannot create multiple cookies on some browsers
http://code.google.com/p/iliadproject/issues/detail?id=14

What steps will reproduce the problem?

A code like below only sets one of the cookies on browsers like Firefox or  
Opera while it works fine on Epiphany:

respondOn: aResponse [
         | cookie |

         cookie := Iliad.ILCookie key: 'MemberName' value: self user
memberName.
         cookie expireIn: (Duration days: 365).
         aResponse addCookie: cookie.

         cookie := Iliad.ILCookie key: 'Password' value: self user password.
         cookie expireIn: (Duration days: 365).
         aResponse addCookie: cookie.

         super respondOn: aResponse.
]


What version of the product are you using? On what operating system?

Iliad 0.8, Linux (Salix 13.1.1 64-Bit)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 14 in iliadproject: Cannot create multiple cookies on some browsers

iliadproject

Comment #1 on issue 14 by canol.gokel: Cannot create multiple cookies on  
some browsers
http://code.google.com/p/iliadproject/issues/detail?id=14

I guess, this is because of the Set-Cookie line created in the response  
headers. I couldn't find what the format should be for multiple cookies,  
officially, but Iliad creates something like this:

Set-Cookie: cookie1=value1; path=/; expires=Tue, 06 Sep 2011 13:01:20 GMT,  
cookie2=value2; path=/; expires=Tue, 06 Sep 2011 13:01:20 GMT

So, it separates multiple cookies via commas. Whereas, one of my ASP  
applications which also sets multiple cookies creates a header like:

Set-Cookie: cookie1=value1&cookie2=value2; path=/; expires=Tue, 06 Sep 2011  
13:01:20 GMT

So it writes cookie names and values one after another and separates the  
cookies via an ampersand. This way it works fine with all the browsers I  
tested.

In the RFC (http://www.ietf.org/rfc/rfc2109.txt) it says:

    Informally, the Set-Cookie response header comprises the token Set-
    Cookie:, followed by a comma-separated list of one or more cookies.

I don't know if this is an issue of Iliad or Swazoo though :)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 14 in iliadproject: Cannot create multiple cookies on some browsers

iliadproject

Comment #2 on issue 14 by petton.nicolas: Cannot create multiple cookies on  
some browsers
http://code.google.com/p/iliadproject/issues/detail?id=14

It looks like a Swazoo bug, indeed. I send it to Janko.