Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using Session Data in other Webapps


olwen

Recommended Posts

I have a survey application I have written that I want available to certain customer classes. I've tried integrating it with OsCommerce by including relevant sections of code, with very little success because the sessions are not working properly

 

Then it occured to me that I should run it parallel, About the only information I need from OsCommerce is the email address of the person and a flag to say that they have the right to answer this survey. Can anyone suggest a way that I can pass the information in a format the other app can use (get strings will not do)

Link to comment
Share on other sites

you don't do get strings. You use session variables. The application_top.php is the key is where the top functions for to start the sessions take place. As long as your new/custom files use the application_top.php and the tep_href_link function for the site's links you should be ok.

Link to comment
Share on other sites

you don't do get strings. You use session variables. The application_top.php is the key is where the top functions for to start the sessions take place. As long as your new/custom files use the application_top.php and the tep_href_link function for the site's links you should be ok.

I've tried using application_top.php and the two are not playing together nicely. At one stage $_SESSION had all the right data but the individual variables were not set. Once I went to subsequent screens the session data was not carried through at all. I can't use tep_href_link because it does not fit with the other system which I attempted to wrap with the necessary parts of OsCommerce.

 

The survey app I had already written using CakePHP which I am using for any new work I do, and I was not wanting to re-do all the work.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...