Hi, 

I am going to write an app that allow user to register in a JSP page,
press submit, then user redirected to a new page telling user
to check email, click on a link on email, redirected to a page,
then commit user  info to database. If user doesn't do this
within 24 hrs, then delete user info.

I have no problem sending email with a unique link made up
of unique username plus some random generated digits and characters.

I was wandering if anyone has done this and give me some tips.

The way I see it is commit user's registration detail to database 1st
when user click submit, then send email (using jarkata mailer tag).

Then delete user record if user don't click/visit link on dynamically 
generated link within 24 hr from email. The link would have parameter
that can tell an Action who is visiting.

Problem:
Now, how do I write an Action that will check back latter after 24 Hrs
for an user?? Using thread in Action??? Dunno if that's a good idea.

The way I am going to do this is, have an Action implement
thread, for evey user registration, set wake up (check back)
interval after 24 hr. Every user visiting this Action will wake
up Action and do validation. After that, Action goes back to sleep.

Is this a good idea??

Thanks







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to