NetTalk Central

Author Topic: Delete all sessionvars that have the same prefix in the name  (Read 4704 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Delete all sessionvars that have the same prefix in the name
« on: August 19, 2018, 05:29:45 AM »
Hi Bruce,

Is it possible to delete all sessionvars that have the same prefix in the name? Or using a wildcard?

E.g. p_web.DltPfxSV('hlp*'). And this being case insensitive, ofcourse.

Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Delete all sessionvars that have the same prefix in the name
« Reply #1 on: August 19, 2018, 11:06:05 PM »
no there's no method to do this.
You would need to loop through the data queue to do this.
See the code in netweb.clw, in _DeleteSessionValue, to get some ideas.

cheers
Bruce