close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


sessions somehow being destroyed on success/failure page

Thread began 7/23/2012 8:44 am by josephman1988418631 | Last modified 7/23/2012 9:17 am by Jason Byrnes | 842 views | 1 replies |


sessions somehow being destroyed on success/failure page

Hi Guys,

Having a little bit of a problem!

I log in to my site, add to basket to the point where it added the order to the database (all perfectly fine!).

I've integrated this cart with sagepay.
When I get redirected to the success page however ALL my sessions are destroyed!

I have no destroy/unset session on the page, and it's happening on both the failure and success page.

The even weirder thing is the fact it only happens on IE and furthermore, it seems to work on MY IE, but not another computers IE (both windows 7, both home premium, both 64 bit.

Have you got any ideas what may be causing this problem?
I've attached the success page just in case.

<?php session_start(); ?>
//WA eCart Include
<?php require_once("WA_eCart/checkoutScripts/Protx_VSPForm.php"); ?>

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">



if ($Protx_VSPForm_Bindings["VPSTxId"] != "") {


mysql_query("UPDATE orders SET
orderStatusCode = 1,
OrderVendorTransactionCode = " . $Protx_VSPForm_Bindings["VendorTxCode"] . ",
OrderSagePayTransactionId = " . $Protx_VSPForm_Bindings["TxAuthNo"] . ",
OrderTrackingNumber = '" . $Protx_VSPForm_Bindings["VPSTxId"] . "'
WHERE OrderID = " . $_SESSION['skincentrics_OrderID'] . "");

mysql_query("UPDATE orderdetails SET
DetailCompleted = 1
WHERE DetailOrderID = " . $_SESSION['skincentrics_OrderID'] . "

$getItems = mysql_query("SELECT * FROM orderdetails WHERE DetailOrderID = " . $_SESSION['skincentrics_OrderID'] . "");
if ($_SESSION['skincentrics_OrderID']) {
while ($fetchItems = mysql_fetch_array($getItems)) {

mysql_query("UPDATE product_lock SET
product_lock_complete = 1
WHERE product_lock_product_id = " . $fetchItems['DetailProductID'] . " AND product_lock_order_id = '" . $_SESSION['skincentrics_OrderID'] . "'");
if ($fetchItems['DetailProductID'] == 22 or $fetchItems['DetailProductID'] == 23) {

$todayDate = date("Y-m-d");

$dateingToInsertEnd = strtotime(date("Y-m-d", strtotime($todayDate)) . "+1 month");

$dateingToInsertEndFinal = date('Y-m-d', $dateingToInsertEnd);

mysql_query("UPDATE users
SET users_expiry_date = '" . $dateingToInsertEndFinal . "'
WHERE users_id = " . $_SESSION['kt_login_id'] . "");









Sign in to reply to this post

Jason ByrnesWebAssist

sounds like domain switching to me. sounds like you are starting the browsing session using a URL that includes the www in the address:

and the success redirect is not including the www:

these are considered 2 separate domains by the session cookie

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