hello every body, i'm designing a online shopping website. In that site a customer payment option redirect them to ebs website(payment authority). The problem here is after returning from the ebs website some times the session got expired and the payment status remains not received but the amout is got from customer account so for each and every order we have to change the payment status in the database(but it is not possible since we dont know who all r ordering and who all r paid the cost). can anybody help me to figure out the problem?
Sounds like their browser is dropping the session cookie, or you are overwriting it when they return. I would recommend doing a "remember me" type of system. Simply store a ref for the user to kick-start the session gain when they return if they dropped the session. For example you could store a ref ID in a table that ref back to their account and expires at a set time, or you could store their user ID, and password hashed and compare when they return.