 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Johan Anderlund Guest
|
Posted: Tue Aug 22, 2006 4:25 am Post subject: WebSnap and sessions |
|
|
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 |
|
| Back to top |
|
 |
Jack Tackett Guest
|
Posted: Thu Feb 08, 2007 10:33 pm Post subject: Re: WebSnap and sessions |
|
|
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? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|