storeweb88 Posted January 21, 2014 Posted January 21, 2014 I have some simple pages that are inside the site, but not inside the store part. They are regular old php html javscript pages. How would I pass or carry the session so the person may navigate through out the site seemlsy without ever losing session id? Any pointers or suggestions are greatly appreciated.
Jack_mcs Posted January 21, 2014 Posted January 21, 2014 There is an addon that allows you to do that (no idea of the name). Basically, you need to include the oscommerce files in the source for those pages and then use the tep_href_link when creating the links. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
♥ecartz Posted January 21, 2014 Posted January 21, 2014 You could also Force Cookie Use -- that makes it so that the session ID is carried in the cookie, not in the link. So long as they don't spend longer on the other pages than the expiration of the cookie, the cookie will still be there the next time they load an osCommerce page. The downside is that people without cookies can't use sessions. Note: if you need to access osCommerce data on non-osCommerce pages, Jack's solution is going to be better. This is a simpler solution that only means that the site won't care if you leave osCommerce and then go back. Always back up before making changes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.