close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Requery after SESSION change

Thread began 4/09/2011 11:06 am by bjgarner241692 | Last modified 4/11/2011 9:43 am by Jason Byrnes | 852 views | 2 replies |


Requery after SESSION change

I am implementing multi-currency on a eCart.

Currency Sessions default to USD and 1, 1 being the exchange rate.

To change to CAD, user clicks radio button and submits.

Session values are updated to CAD and the Exchange Rate from a DB Query using the selected currency as a variable. (In this case, CAD).

This works perfectly on my testing server (Windows 2003 Server, IIS6)
On my production server, also Windows 2003 Server, IIS6, it changes the currency denomination, but it does not change the multiplier.

It will change the multiplier if you choose the currency again and submit again.

Ignoring the fact that it works in testing, I figured that the problem is that the Query is not running again becuase the page is not reloading so I slipped in an intermediary page.

The form now posts to another page, on which the Session Values are updated and then I have a blank form which submits on load and posts to HTTP_Referer, which is the last page viewed.

Again, works seamlessly on my testing server, but on the production server I have to submit twice to get the correct multiplier.

This is not an eCart problem, but if anyone can shed some light on what I've missed, or a better approach, I would appreciate it.

Sign in to reply to this post


Order of operations.

I was setting the SESSION ID that denoted currency AFTER the recordset that pulled the multplier.

Why it worked on my Dev server will have to remain a mystery.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear you have it working.

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