Cannot create multiple cookies on some browsers

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

Cannot create multiple cookies on some browsers

ZuLuuuuuu-2
Hello,

I try to create several cookies on my application. I use a code like
this:

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.
]

But this code does not create the cookie named "Password" on some
browsers (Firefox, Opera), it only creates the cookie named
"MemberName". It creates both cookies on Epiphany browser. Should I do
something different or might this be related to my browser settings
(Opera is on default settings, though)?


Canol
Reply | Threaded
Open this post in threaded view
|

Re: Cannot create multiple cookies on some browsers

Nicolas Petton
Le dimanche 5 septembre 2010 10:52:11, ZuLuuuuuu a écrit :

> Hello,
>
> I try to create several cookies on my application. I use a code like
> this:
>
> 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.
> ]
>
> But this code does not create the cookie named "Password" on some
> browsers (Firefox, Opera), it only creates the cookie named
> "MemberName". It creates both cookies on Epiphany browser. Should I do
> something different or might this be related to my browser settings
> (Opera is on default settings, though)?

That's strange, it's probably a bug, I'll have a look asap :) Can you create
an issue on the tracker for it?

Thanks,
Nico
--
Nicolas Petton
http://www.objectfusion.fr
Objectfusion S.A.R.L.
Applications web - Design