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

Insert Record/ set session variable question

Thread began 6/12/2012 6:35 pm by jason363662 | Last modified 6/13/2012 4:36 pm by Jason Byrnes | 3214 views | 3 replies |

jason363662

Insert Record/ set session variable question

Unsing current SuperSuite and DW CS6

I need to set a session variable when I insert a record into my database so that I can query the table for that record on the subsequent page and set image id's to the session variable. When I try to use the DataBridge Insert utility I can see that it gives me an option to set the variable, but it doesn't give me the option to tell it what the key column is (which is suggested in the help file).

Am I missing something here - how do I pass the key column id as a session variable when inserting the record?

I'm attaching an image of the insert page I see.

The rough page where the insert

Sign in to reply to this post

Ray BorduinWebAssist

It gets the key field from the database. It will be what you have defined as the key in the db. If you want to store one of the submitted values you can use the set session value server behavior.

Sign in to reply to this post

jason363662

Working but follow-up question

It turns out it was working all along but I was trying to call the variable in an unsecured page. When I applied Security Assist Limit Access to the page the variable showed. I just want to confirm that Session variables created by DataBridge will only work on secured pages? Is there any way to use the session variables on unsecured pages?

Thanks for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

you can use sessions on unsecured pages, just make sure to have the following code before trying to reference the session value, to force PHP to look for the session contents:

php:
<?php @session_start(); ?>



security assist adds this code to page in the helper.php file, adding that code manually to the page should do the trick.

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