NetTalk Central

Author Topic: session values in NetWebService not visible???  (Read 90 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
    • Email
session values in NetWebService not visible???
« on: November 13, 2025, 02:20:25 PM »
Hi
NT 14.36  C11
I have a NetWebService and it has p_web as the parameter. 
I set some sessionValues.  p_Web.SSV('Someitem','one') in the NetWebService procedure.
I have another Net Talk procedure ( actually a Memform not on a table).  I am trying to read the values set by the NetWebService procedure.
e.g.  in my Memform procedure, I want to check these values periodically.  However my p_Web.GSV('Someitem') is ALWAYS blank - even after I see that my NetWebService procedure has set them using Trace statements.
YIKES - these should be working as they are part of the same session.....
Any ideas?
Thanks,
Ron

Jane

  • Sr. Member
  • ****
  • Posts: 415
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: session values in NetWebService not visible???
« Reply #1 on: November 13, 2025, 07:28:57 PM »
Any time I've experienced such a thing, it's due to something that i screwed up.

Possibilities I can think of

1.  Spelling error (compiler will not catch those for session values)
2.  You're not in the same session that you think you're in
3.  Something has changed or cleared the session value between when you set it and when you're trying to read it.

Some well-placed debug statements will show you the SessionID when you're setting and when you're trying to read.

If the values you're checking are not part of a specific session, try using SetHostValue instead.



rjolda

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
    • Email
Re: session values in NetWebService not visible???
« Reply #2 on: November 14, 2025, 03:21:28 AM »
hi Jane,
Last night I realized that the API client-NetWebService may have a different Session ID than the NT member procedure and the NetWebService. I had ruled out spelling and clearing the values and I know that they were written correctly in the WebService procedure.  The only thing is the SesionID.  May look at Set Host Value.....
Thanks,
Ron

rjolda

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
    • Email
Re: session values in NetWebService not visible???
« Reply #3 on: November 14, 2025, 03:45:55 AM »
HI Jane,
I did some reading and evaluating.  WHile I could put it in Host Value by Transaction number,  e.g. SetHostValue('mytransactionNumber', 'data for transaction'), I am not sure that this is ever cleared.. Worse to run out of memory than to have a few extra database reads! So, I am going back to checking my file.
Ron