Re: [fpc-pascal] [FCL-WEB] Multiple Modules - On Session

2018-03-22 Thread Michael Van Canneyt
On Wed, 21 Mar 2018, leledumbo via fpc-pascal wrote: It seems that session management create one separate session by each module That's right but should be OK, as the session is created based on cookie, which if already exists, will be loaded instead of created. If memory serves right, I

Re: [fpc-pascal] [FCL-WEB] Multiple Modules - On Session

2018-03-22 Thread leledumbo via fpc-pascal
> It seems that session management create one separate session by each module That's right but should be OK, as the session is created based on cookie, which if already exists, will be loaded instead of created. If memory serves right, I remember you should set one or a few of these: *

[fpc-pascal] [FCL-WEB] Multiple Modules - On Session

2018-03-19 Thread African Wild Dog
Hello, I am trying to implement authentication in my application using the provided IniWebSession unit. I have created a separate module to handle authentication. So, i have two modules modules. In my main module, in the OnRequest event handle, i check for session variables ('username') to