I redirect logged users from my site to a bank payment system. After the user has completed the payment, he is redirected from the bank site to my site, however, in many cases, the session is lost. Any idea?
Here is the logg code:
Connect
FormsAuthentication.RedirectFromLoginPage("user", false);
Session["id"] = 1;
Disconnect
FormsAuthentication.SignOut();
Session.Clear();
Session.Timeout = 1;
Session.RemoveAll();
Session.Abandon();
Thank you.
Depending on your setup maybe the session is stored on www.yourdomain or yourdomain. For example, if user is logged on from yourdomain and then redirected back to www.yourdomain maybe the session is not there.