|
<< Click to Display Table of Contents >> Navigation: Forum > Cookies stoped working when upgrading from 14 to 15 |
11-15-2018, 07:28 AM:
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?
11-18-2018, 11:53 PM:
Hi Per,
I'm working on it right now and will have more information soon.
04-05-2019, 02:48 PM:
(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-15-2019, 08:43 AM:
(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?
09-26-2019, 07:57 PM:
(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);
12-06-2019, 09:24 PM:
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.