close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Find Session Variable?

Thread began 2/10/2011 9:52 am by willo009412397 | Last modified 2/23/2011 1:24 pm by willo009412397 | 3863 views | 18 replies

Jason ByrnesWebAssist

the session from the profile age is named "id" if you dont see the id session variable listed in the Bindings Panel in the session section, you can create it:

go to Window -> Bindings to open the bindings panel

Click the Plus button to add a new binding

Select Session Variable and set the name to "id" (without the quotes, of course).

In the petdata table, you should have a user ID column that will be used as a foreign key column to relate each new record to the user that creates the record. this user ID column will get the value from the id session variable.

you have had a few questions about getting data from related tables, creating join queries, and I can see one flaw to your database design that is going to cause a lot of confusion for you, it actually already has.

In all of your tables you are naming the Primary key Column as "id". this can be confusing for a few reasons:

1) SecurityAssist uses the name of the id column to create the users id session variable. This has been created as "id" which is not a very informative session variable name, it does not tell you what the session variables job is.

2) you have to look at the table name to knwo which ID your referring to. you have already run into this issue in another thread where you where getting ambiguous column name error.

it is a better practice to use unique names for your columns in each table.

the naming convention I use when creating a new table is to include the table name in each column name. for example, if i am creating a new table name "users", i create all columns using "user" as a prefix:

this way I have a unique name for every column in my database, the userID value will be stored in a session named userID, I will have be able to tell what the session is for at a glance and not have to keep track of it throughout the development process.

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