aspose file tools
The moose likes Java in General and the fly likes confirmation identity via email Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "confirmation identity via email " Watch "confirmation identity via email " New topic
Author

confirmation identity via email

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Hi there,
I'd like to send an email to confirm the user identity after he self registered on my web app. I think that send an url with the action path and the user id is not a good idea.
Can anyone give me a suggestion or some link to resources out on the web?

Thanks in advance.


trying to decode a woman mind....
Andris Jekabsons
Ranch Hand

Joined: Jan 20, 2004
Posts: 82
You can encode the user ID (and whatever other info you need) and associate the encoded number/characters with the user. For example, generate a simple hashCode (or something more sophisticated) from the user ID, and store both pieces of info in your db. Send the link to user with that encoded info as a URL parameter. When the user clicks on it, you can get the encoded URL parameter and retrieve the user ID from the database.
I think that's what most real life systems do.
Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
thanks for your suggestion. It makes sense.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: confirmation identity via email
 
Similar Threads
Using Email to Collect Data
User Self Registration Security
The Head First Formula
How do I know the email is Sending failed?
How can I capture the output of a JSP file and send an email?