You could use TempData.
Much depends on the design of your application.
TIMTOWTDI =. there is more than one way to do it.
Example:
In an application I've done, once the user successfully
registers, I take her/him to a pending page where
I say confirmation needs to be done based on an
e-mail. The e-mail has an excrypted key that allows
me to confirm the user. On confirmation, I take
the user to the home page. I let the unconfirmed
user log an but do not allow any actions that
require authentication. In pseudo code:
logged in + not confirmed,
to page stating confirmation is
required.
What I do may not work for you.
I do not know the details of your
requirements. I also do not know
what you are confirming. Nevertheless,
TempData would probably work for you.
In North American football terms,
it would be like a double handoff,
your first page sets up the
TempData for your confirmation page
and your confirmation page sets it up
again for the next page. TempData
is temporary and does not hang around
very long.
http://msdn.microsoft.com/en-us/library/system.web.mvc.tempdatadictionary.aspx
gerry
Gerry Lowry, Principal
Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
68 John W. Taylor Avenue
Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com
Websites:
http://abilitybusinesscomputerservices.comhttp://gerrylowryprogrammer.com ~~
résumé & testimonials
http://veganoccasions.com ~~ recipes by
Susan