Atozed Forums
Cookies stoped working when upgrading from 14 to 15 - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Cookies stoped working when upgrading from 14 to 15 (/thread-825.html)



Cookies stoped working when upgrading from 14 to 15 - Per Waernborg - 11-15-2018

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?


RE: Cookies stoped working when upgrading from 14 to 15 - Alexandre Machado - 11-18-2018

Hi Per,

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


RE: Cookies stoped working when upgrading from 14 to 15 - Fabio Brabo - 04-05-2019

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


RE: Cookies stoped working when upgrading from 14 to 15 - Alexandre Machado - 04-15-2019

(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?


RE: Cookies stoped working when upgrading from 14 to 15 - Fabio Brabo - 09-26-2019

(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);


RE: Cookies stoped working when upgrading from 14 to 15 - Alexandre Machado - 12-06-2019

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/master/15/Delphi/Cookies

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