NetTalk Central

Author Topic: NT 8.02 _DeleteSession compile error  (Read 2498 times)

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
NT 8.02 _DeleteSession compile error
« on: March 19, 2014, 01:12:29 PM »
Hi Bruce
I have a few places that use the following code
p_web.RequestData.WebServer._DeleteSession(clip(p_web.gsv('sv_3:sessionID')))   
When upgrading to NT 8, I am getting No matching prototype available on this code.

Thanks
Debra

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT 8.02 _DeleteSession compile error
« Reply #1 on: March 19, 2014, 11:24:58 PM »
Hi Debra,

the first parameter to that method is now a pointer, so you need to put the value in a string before calling it. For example;

otherid = p_web.gsv('sv_3:sessionID')
p_web.RequestData.WebServer._DeleteSession(otherid)


Incidentally you never need to clip the value returned by p_web - all the methods that return strings automatically return clipped strings.

Cheers
Bruce