NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on May 06, 2010, 06:17:14 PM

Title: session variables queue
Post by: rjolda on May 06, 2010, 06:17:14 PM
Hi,
How can I view the session variables for the server and the contents of the session variable queue - i.e. all of the entries in the Session Value queue and the current values for each entry?
Thanks,
Ron Jolda
Title: Re: session variables queue
Post by: Bruce on May 06, 2010, 11:11:41 PM
Hi Ron,

It's a queue, so I guess the easiest way to see inside it is to use a list box.

However, beware, it's a global, unthreaded queue, so while it may be useful for debugging, I would not include that in a production program.

Cheers
Bruce
Title: Re: session variables queue
Post by: rjolda on May 07, 2010, 03:19:09 AM
Hi Bruce,
What is the name of the Session Variables Queue and how can I reference it in a list box?
I see a bunch of typed queues in the net web code.  What is the name of the queue that gets instantiated for the server?
Thanks,
Ron
Title: Re: session variables queue
Post by: Bruce on May 07, 2010, 06:07:13 AM
There are a couple Queues here;

_SessionQueue             &NetWebServerSessionQueueType
_SessionDataQueue         &NetWebServerSessionDataQueueType

these are both properties of the WebServer object.
The first contains a list of the active sessions - the second contains a list of ALL the session values (for all the sessions)

Cheers
Bruce