I have two websnap dll's (Login.dll and CheckLogin.dll), both have a
TSessionService and a TEndUserSessionAdapter.
Both EndUserSessionAdapters have a Data field called 'EMailAddress'.
In my first dll, Login.dll, I only read access the session variable in
PageProducerHTMLTAG like this:
if Session.Values['EMailAddress'] <> '' then
ReplaceText := 'Error. Try again'
else
ReplaceText := 'Enter your email and password.';
In my second dll, CheckLogin.dll, I write access the session variable in
WebAppPageModuleBeforeDispatchPage like this:
strEMail := Request.QueryFields.Values['email'];
if not found then
begin
Session.Values['EMailAddress'] := strEMail;
Response.SendRedirect('Login.dll');
end
else
Ok, on to the questions:
1. Do I need to have the TSessionService, the TEndUserSessionAdapter and
the Data Variable 'EMailAddress' in both dll's?
2. Why doesn't my app work? I always gets redirected to Login.dll and
the ReplaceText is always 'Enter your email and password.'
// Johan