close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sessions not being killed off

Thread began 10/22/2014 8:05 am by mrs | Last modified 10/23/2014 11:52 am by Jason Byrnes | 229 views | 3 replies |

mrs

Sessions not being killed off

I've created a few sessions on a details page that I am using to populate content on a results page that is filtered based on the session info. However, when I move from one detail page to another, I am finding that the sessions are not being killed off and repopulated with the new session info leading to inaccurate content being displayed. If I refresh the page, then the correct info is displayed. Why?

I'm using sessions to enable me to relate content from one table to another. So, my news table is giving me the key ID of an article (articleID), that articleID is then related to an images table where the filtering is applied and displayed on the detail page. It's here that the wrong content is being displayed until the page is refreshed.

What have I done wrong? Pages in question are attached. Detail page is the session initiating page.

Thanks.

Mat

Attached Files
tbl_article_slider_results.php
tbl_news_detail.php
Sign in to reply to this post

Jason ByrnesWebAssist

order of operations.

you have 2 recordset, the first:
WADAtbl_news

is at lines 70 - 78 and uses the fld_id url variable for the filter.

the second:
rs_images

is at lines 80 - 88 and use the articleID session tho filter.

However, the code to set the articleID session is after the recordset at lines 122 - 125

This means that the value in the session is not changed till after the recordset that uses it is created, ergo, the recordset is created using the old value.

move the code to set the session so that it comes after the first recordset and before the second.

Sign in to reply to this post

mrs

Aha! Perfick! A silly error really.

Thanks Jason.

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

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