简体   繁体   中英

How to save form info without hash or cookie?

I want to save info in a form before a visitor signs up or signs in as a user. The problem is that I'm saving the info in the browser's session, so if the visitor closes his browser after signing up then we loose the form info. Sign up requires email verification, so much of the time the user is likely to close the window and verify his account later. I know another way to do this is using hash, however what should I do in the case of a visitor who already is a user, fills out form, then signs into his account? I can't use a hash in this case and a cookie will not work either.

I think the right way is that save information into database and generate a confirmation code and send it to the user.

You need ConfirmationCode , Confirmed database fields to check the user status.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM