close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

sessionid undefined

Thread begun 6/09/2010 10:27 am by president310264 | Last modified 6/11/2010 3:04 pm by Eric Mittman | 3678 views | 16 replies |

president310264

sessionid undefined

On my confrim page, I am running into an issue where my sessionid is undefined. I dump the session variables to the page and sure enough...it is not there. Previously, it had been working fine. So something I did broke it somewhere. I am just not sure where. I believe this variable is the [session id] variable that is set in both the orders and order details dbs to link the two together. I believe the syntax is something like...cart_name_xxxxxxxxxxxx.

So where is this variable set so I can fix this and get my cart working again?

Zipped confirm page is attached minus login info to authorize.net

Attached Files
confirm.zip
Sign in to reply to this post

president310264

I have also noticed that the _ORDERID is missing from my cart. SO something has happend to my cart somehow. Please help me fix.

Sign in to reply to this post

president310264

BY the way, I am on Vista and using the latest release of eCart

Sign in to reply to this post

president310264

Okay...I re-uploaded my eCart files and it seemed to fic the sessionid as I dumped the session scope to the page and see that, but again...it is not setting the _ORDERID

Sign in to reply to this post

president310264

ok...I mis-spoke earlier. My sessionid issue is not fixed. I tried re-running through a transaction and ran into the same issue as before. If anyone can help me out, I would appreciate it.

Sign in to reply to this post

Eric Mittman

Ecart makes use of the session id for the internal id of the cart. If this value is not set then you will have issues with the checkout and the cart in general. If you make a php info page you should be able to see this value. An info page is any php page with this line of code in it:

php:
<?php phpinfo(); ?>



When you view this page look for the this setting:
_REQUEST["PHPSESSID"]
or
_COOKIE["PHPSESSID"]

The session id should be available on the page anytime after session_start() is called. You can also generate a session id with the session_regenerate_id() function. You can add a check to see if the session id exists and if not start the session and generate a new id like this:

<?php if(!session_id()) session_start();
if(!session_id()) session_regenerate_id();?>

As for the order not being there what value do you see and what is the code that is referenced for this?

Sign in to reply to this post

president310264

First thing...I am building this page in ColdFusion. So the php info will not help.

As for the orderid...here is the line of code from the checkout_success.cfm page...

<h2>Order Receipt</h2><h3 class="eCart_OrderHeaderInfo">Order number: #Session.resumeCart_OrderID#</h3>

resumecart is the name of my eCart object.

Sign in to reply to this post

Eric Mittman

Thanks for pointing out the CF, that changes things a bit. Do you have your application.cfm page in the root of your site with the session management enabled? This is the key to making use of sessions in CF. If the sessions are not working correctly you will have issues like this.

The order id should be set to either the session id or the id of from the orders table where the order was inserted. Post back with your confirm page minus any sensitive details so we can look into the order id variable further.

Sign in to reply to this post

president310264

Anyone have any thoughts? I need to finish this project.

Sign in to reply to this post

Eric Mittman

Looks like we posted at the same time, check out my last post and post back with any additional info or the page in question.

Sign in to reply to this post
loading

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