I am facing a really weird issue here.
I have two websites: **A** and **B**
**A** is the landing page (a micro website). **A** is running Joomla.
**B** - payment pages. Coded with CodeIgniter. Uses session library and stores session data in a database.
=================
Scenario: a user visits a landing page (website A), chooses a service package and clicks buy. Then he is taken to the payment page (website B) and starts filling in his application form. Once he is done, he is taken to a payment gateway (provided by SecureTrading) and makes a payment. After a successful payment, a user is taken back to website B, where he has to finish the last bit of his application.
Problems: After a successful payment, user is redirected back to website B, but for some reason all session data is lost.
When does this happen: Session data is lost only when a user is coming from the landing page (A). If i start filling the application form without visiting the landing page at first, everything works just fine.
Why is this happening? How do i fix this?