user1850833
user1850833

Reputation: 1

Alternative to storing form info in browser session

I want visitors to my site to fill out a job post before they sign up for an account. Once the job post info is filled in and user signs up, the job will not actually be posted till the user confirms his email address. My issue is that if the user closes his browser and confirms his account later, the job post is gone because I'm saving it in the browser session. Is there a better way to address this problem?

Upvotes: 0

Views: 70

Answers (1)

diggersworld
diggersworld

Reputation: 13080

Store the information in a database.

You're going to have to do that eventually anyway for other people to view it.

You can't rely on a session as they expire.

In reponse to comment:

If you're not storing the email address to begin with before sending the email out, then you're not really doing email verification. I would store the email address in a user table with a verified flag of 0. Then when the user verifies you can set it to 1. Then you know that anything linked with this user can be displayed.

Upvotes: 1

Related Questions