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


session value on added field

Thread began 3/07/2014 4:56 pm by The Flying Fox | Last modified 3/07/2014 5:11 pm by Jason Byrnes | 227 views | 3 replies |

The Flying Fox

session value on added field

I have added a field to my order database called gateCode

on my pp_confirm page i have added code that generates a random code and then inserts this when it updates the database.

Without creating a recordset what would be the easiest way to save this value as a session as I cannot access this value via any bindings?

Sign in to reply to this post

Jason ByrnesWebAssist

How are you generting the random string

you should save the random string to the session:

$_SESSION['randomString'] = $randomString;

go to the bindings panel, click the plus button and select session, name it randomString to create the binding.

use the session binding in the store order summary behavior and any place else you want to refer to it.

Sign in to reply to this post

The Flying Fox

Hi Jason,

My code is stored in a external file. I use the 'require' syntax

I've created a session as below

if ("" == "") {
$_SESSION["session_gateCode"] = "".(getRandomString(xx)) ."";

and bound the gateCode field to <?php echo $_SESSION['session_gateCode']; ?> in the behaviors tab.

I wanted to use the session value in an email to the buyer when the purchase was successful.

I answered my own question before you replied.. thanks again


Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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





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