Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Is it possible to keep osCommerce Session IDs on non-store pages


Recommended Posts

I installed a wordpress blog on my Osc store's catalog folder.


I want to add a link to the blog home page.


This link is :


<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . 'Return to store' . '</a>'; ?>



But this php link with session Id did not work on the blog.


Hope someone can help.



Thanks in advance.



Link to comment
Share on other sites

Since you're not getting a "function not found: tep_href_link()" message, I'll assume that you're including the appropriate osC file to define that function. I suspect what's happening is that you lost the session when leaving osC and hopping around the blog pages, unless you added the appropriate session code to all the blog pages.


You might search around (and then ask) on this forum for how to maintain the osC session on non-osC pages. IIRC, it involves adding PHP code to do a session_start() or something at the beginning of every page. If Wordpress also has its own sessions, I don't know if you'll be able to preserve your osC session even then.

Link to comment
Share on other sites


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

  • Create New...