Page refresh?

John Straumann 21 Reputation points
2023-01-25T20:45:51.5966667+00:00

Hey All:

 

I am working on an ASP.NET 4.X site (not core) that uses Stripe for payments, and so from the ContactProfile page a user can click Pay, and it takes them to Stripe, and when the payment is processed, redirects back to the Contact Profile page. However, when the page returns, the User does not get access to the site because even though the DB has been updated with a flag "Membership=current", the page has not been refreshed with the new data. The user has to log out and log back in to get access.

 

Does anyone know of a way to force a hard refresh but only for when the User is returned after paying via Stripe, not on subsequent logins. I tried setting a session variable "NewMember=true", but the only way I have found to refresh is via Javascript, and I cannot figure out how to read the session var in JavaScript.

 

Thanks for any input.

 

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,249 questions
{count} votes