BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WebSnap and sessions

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet WebSnap
View previous topic :: View next topic  
Author Message
Johan Anderlund
Guest





PostPosted: Tue Aug 22, 2006 4:25 am    Post subject: WebSnap and sessions Reply with quote



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





PostPosted: Thu Feb 08, 2007 10:33 pm    Post subject: Re: WebSnap and sessions Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet WebSnap All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.