Domanda

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?

È stato utile?

Soluzione

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!!!

Altri suggerimenti

try call session_start() in your first php file, or set in php.ini the session.auto_start option to true. make sure, session store path is accessable. php config

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top