NetTalk Central

Author Topic: session variables queue  (Read 3401 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
session variables queue
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: session variables queue
« Reply #1 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

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: session variables queue
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: session variables queue
« Reply #3 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