View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Session not ending

Thread began 10/12/2009 8:34 am by 4egidio363291 | Last modified 10/23/2009 3:03 pm by 4egidio363291 | 2592 views | 18 replies

Eric Mittman

I have added the session_regenerate_id() code to your checkout success page. This should force the id to be regenerated as a new unique id. If the problem is that the same session id is being used for more than one transaction then this should resolve the problem.

While you test this part out please do the following.

Start all of your testing in a new browser session, make sure to delete cookies and so forth so that it is a clean test.

When you get to the confirm page view the source and look for this element:

<input type="hidden" name="invoice" id="invoice"

When you find it in the source copy the value of this element and paste into in a text file for safe keeping.

Now confirm the purchase and transact the order on PayPal, when you get to the checkout success page it should display some similar info as before but also the new session id after the session is destroyed.

Record the session id that you see here after the session is destroyed and put it in your text file to compare to the id that was submitted with the order.

Now perform your test again and record the values once more. The id's should be different every time you go through, if they are not then you will get this error about the duplicate invoice. Please post back with the text file and the id's you recorded, make sure to label them so we can see when you got certain values.

Attached Files

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