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
determine if the user is logged in. If not, it redirects to the login page,
which is handled by the authentication module.

It seems that session management create one separate session by each
module. Both modules have the property "CreateSession" set to True. If i
turn off "CreateSession" property on MainModule, when i try to access
session variables in OnRequest event handler i get this error: "Default
session not available outside handlerequest".

What i am doing wrong? Please help

Regards
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to