close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

delete persist variable?

Thread began 1/14/2019 1:44 pm by tony | Last modified 1/15/2019 11:28 am by Ray Borduin | 17 views | 4 replies |

tony

delete persist variable?

Hello Ray,
I use the persist data on a form so that the user doesn't need re-enter the data when the form submit fails.
But after successful submit I need to delete the form data. How can I do this whitout deleting all session variables?
Is there a way to get all of persist data session variables names?
TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

The session variable is named: "WASF_" + persistent form name. So you can just delete that one session variable on the success page.

Sign in to reply to this post

tony

Thanks, Ray,
It seems that I cannot delete a single variable (WASF_data_scontrino_sco) , but I can delete the whole array (WASF_persist_partecipa) that it's fine too.
But just out of curiosity, how can I delete a specific persist varibale?
TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

You would have to hand code it, but you can use:

php:
<?php

unset($_SESSION["WASF_data_scontrino_sco"]["fieldname"]);
?>
Sign in to reply to this post

tony

Thanks, Ray.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...