Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can a custom file outside of the osCommerce catalog/ folder be used with osCommerce sessions?


kokaddict

Recommended Posts

Posted

Continued from another thread, basically finding it impossible to have files outside of the osCommerce "catalog/" folder access the same session piece that's used inside the application.

 

Although also including application_top.php in this other file, and doing a tep_session_close() at the end of the file, a new session is started everytime the custom index.php page is hit.

 

Can anyone shed some light on what causes new sessions to be created rather than instantiating the older (osCommerce-created) one used in the shopping cart process?

Posted

Justin,

 

 

When a customer access the store directory to begin the session, the customer is assigned an OSCID which follows the customer until either they make a selection and checkout OR the customer closes the browser. If you provide links that lead outside the store directory, the session is lost. If the customer re-enters the checkout process, they are assigned a NEW OSCID, dropping the previously assigned OSCID.

 

So, bottom line is........to avoid session loss, DON'T provide links outside of the store directory.

 

 

 

 

Chris

Posted

Chris,

 

Thanks for the response but your suggestion basically makes using osCommerce useless for normal purposes unless everything is built and designed in that sandbox. The world doesn't always work that way.

 

Now, since it's written in probably the best internet language out there, I'm sure it's been done and since the shopping cart doesn't always remain even when staying within the confines of the 'catalog/' folder, I am looking for a workable solution.

 

Can anyone shed some light on how to store this information (the osKEY ID value) and explicitly put it in the globals/session so that pages that aren't living under the 'catalog/' folder can still interact (correctly) with those files that do and have them all share the same shopping cart instance PLEASE?

 

Thank for anyone's help here.....

Posted

Justin,

 

Have you looked at the 'Live Shops' links at the top of this page ? There are thousands of osCommerce sites that contain additional pages and that function perfectly working within the structure required to maintain the OSCID.

 

What you are asking to be done, COULD be done but you would be creating an unstable environment for the ecommerce solution.

 

 

You have posted this question before and received the same response. Just because you didn't receive the answers you wanted, doesn't mean ask the question again and again until someone tells you what you want to hear.

 

I suggest you learn to work within the confines of the osCommerce structure or create a NEW ecommerce solution that will function the way you want it to.

 

 

 

 

Chris

Posted

Chris,

 

Thanks for the response but your suggestion basically makes using osCommerce useless for normal purposes unless everything is built and designed in that sandbox. The world doesn't always work that way.

 

Now, since it's written in probably the best internet language out there, I'm sure it's been done and since the shopping cart doesn't always remain even when staying within the confines of the 'catalog/' folder, I am looking for a workable solution.

 

Can anyone shed some light on how to store this information (the osKEY ID value) and explicitly put it in the globals/session so that pages that aren't living under the 'catalog/' folder can still interact (correctly) with those files that do and have them all share the same shopping cart instance PLEASE?

 

Thank for anyone's help here.....

Use force cookies and make sure session id or session is not destroyed.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

FOR anyone that may want to do this in the future....

 

Problem solved. All that's needed is to pass arond the osCsid wherever it's needed (outside or in)...either way works beautifully.

 

Noo-B issue certainly, but easily fixed for the next guy in line!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...