Search code examples
phpsessionzen-cart

session not working in live site and works in localhost


I am working on Zen Cart.My web site involves shopping and billing for which maintaining session is very important.All the steps work correctly until I make the payment.After i submit for the payment it always fails.As I checked the session data gets emptied.I cant understand why this happens as the same code is working perfectly on my localhost.It isnt the problem of the place of session_start.It is placed on the top.Can it be the problem of header redirect?What can be the other possibilities for the error?


Solution

  • Try to check the files and find if somewhere session_destroy has mentioned and not commented.Start searching from the file after which the session is destroyed,obviously!!!