🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #890

twebuserlist static?

#890
From: dougw
Date: Fri, 25 Nov 2005 03:28
29 lines
2576 bytes
Hi all,

I have built a web interface that allows me to log in prior to viewing any
pages.  The login is dynamic in that I authenticate against a Windows
domain, and then add the user to the TWebUserList member variable.  No
biggie yet.  My problem stems from moving between pages.  I thought the
problem was created due to invalid permissions.  However, after debugging
into the pages, I noticed that I was not pulling user rights from the
current user object when looking up my user ID in the web user list.  The
list seemed to think that their were no users.  Sometimes things worked, and
other times, not.  I then found that multiple instances of my main webmodule
was getting instantiated, and this also created a new list (so there were
two).  So I did some research surfing the web for anything I could get my
hands on.  Sound familiar?  So I come across this article that explained
sessions, and how you can setup your page to be cached or destroyed (mine's
cached as it's the main page) after use.  The article also discussed thread
pooling and how a new thread can be spawned (my main webmodule) if the
current thread is in use.  Okay, I can understand that.  It makes sense.
So, I started researching more.  I then find that TWebUserList is supposed
to be a static item.  This also would make sense, as how would multiple
instances of my main webmodule be able to manage user permissions on
components if the user list was available to only one thread.  However, I am
seeing two lists.  This has me a bit purplexed.  Is TWebUserList static?  If
so, does anyone have any insight why I am getting two?  All help is very
appreciated.

Thanks

dougw
Technical Details
Message-ID: <43868338@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,13543077f78f4160,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "dougw" <doug_westmill@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: twebuserlist static?
Date: Thu, 24 Nov 2005 22:28:37 -0500
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 68.117.150.115
Message-ID: <43868338@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132888888 68.117.150.115 (24 Nov 2005 19:21:28 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail