I am writing a web application and for certain actions the user needs to enter a One Time Pin (OTP) - similar to most banking websites.
So I basically need to generate a random string, store it somewhere, send it to the user and then validate the entered pin against the one I stored.
Is it safe to store this generated string in the ASP Session object?