Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WebSnap and sessions

4 views
Skip to first unread message

Johan Anderlund

unread,
Aug 21, 2006, 7:25:49 PM8/21/06
to
Ok

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

Jack Tackett

unread,
Feb 8, 2007, 11:33:59 AM2/8/07
to
it looks like you have 2 seperate sessions and you would need to login
to each one separately. Are you keeping a cookie or a database that
indicates the session id and login status?
0 new messages