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

How to clear Insert session ID on page reload

Thread began 1/24/2018 6:28 am by Accumike | Last modified 1/31/2018 12:27 pm by Accumike | 249 views | 5 replies


How to clear Insert session ID on page reload

Hi Ray

I have an insert sb that redirects to another page to add some additional info automatically for the user. This uses the session ID variable created by the insert sb as part of the URL string, as follows:

... "&id_act=" . $_SESSION['id_act'] ...

This works correctly.

However, when I go back to the first form page and add another record with the insert sb, the URL string picks up the earlier session ID variable, not the latest.

I tried this unset($GLOBALS['id_act']) code at the start of the insert sb, but it does not seem to work:

if (isset($_POST["WA_Insert1"]) || isset($_POST["WA_Insert1_x"])) {
// Clear any earlier id_act SESSION value
$InsertQuery = new WA_MySQLi_Query($crm_realpress_wa);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "cu_action_act";
$InsertQuery->bindColumn("idlic_act", "i", "".((isset($_POST["idlic_act"]))?$_POST["idlic_act"]:"") ."", "WA_DEFAULT");

How should I clear the earlier session ID variable reliably?



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





Ease of use


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...