Atozed Forums

Full Version: Cookies stoped working when upgrading from 14 to 15
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use cookies to remember the login and has a working app made with Delphi 10.1.2 and IntraWeb 14.1.7. It writes and reads cookies just as I want it to.
When I move this app to Delphi 10.2.3 and IntraWeb 15.0.15 the cookies don't work any more. 

I have the following settings in the ServerController:
AllowMultipleSessionsPerUser = False
CookieOptions
> CookieNameSuffix = "empty"
> HttpOnly = False
> SameSite = ssoNone
> Secure = False
> SessionCookies = True
> UseCookies = True

Are there any other settings I should check or is it someting else I should be looking for?
Hi Per,

I'm working on it right now and will have more information soon.
(11-18-2018, 11:53 PM)Alexandre Machado Wrote: [ -> ]Hi Per,

I'm working on it right now and will have more information soon.


Estou tendo o mesmo problema, desde que migrei do 14 pro 15.
(04-05-2019, 02:48 PM)Fabio Brabo Wrote: [ -> ]
(11-18-2018, 11:53 PM)Alexandre Machado Wrote: [ -> ]Hi Per,

I'm working on it right now and will have more information soon.


Estou tendo o mesmo problema, desde que migrei do 14 pro 15.

Como você salva e lê os cookies?
(04-15-2019, 08:43 AM)Alexandre Machado Wrote: [ -> ]
(04-05-2019, 02:48 PM)Fabio Brabo Wrote: [ -> ]
(11-18-2018, 11:53 PM)Alexandre Machado Wrote: [ -> ]Hi Per,

I'm working on it right now and will have more information soon.


Estou tendo o mesmo problema, desde que migrei do 14 pro 15.

Como você salva e lê os cookies?

Lendo os cookies:
WebApplication.Request.CookieFields.Values['COSTUMER']

Salvando os Cookies:
WebApplication.Response.Cookies.AddCookie('COSTUMER', strCliente, '', now + 30);
I created a simple demo showing how to set and read custom cookies. It works as expected.

Have a look here and see what you get: https://github.com/Atozed/IntraWeb/tree/...hi/Cookies

I think the problem is that the path is not set correctly so it won't work as intended.