2009年12月29日星期二

Re: [fw-auth] redirect after login from restricted page

You can simply store the requested url in a query variable, and store it in your form. Something like this:

/mysite/login?url=comment/85

Then in your form store that url in a hidden field. After submitting the form, redirect to that url

On Tue, Dec 29, 2009 at 8:03 PM, blorriman <bob@strataserve.ca> wrote:

I am working on a site that registered users can input comments which are
then emailed to other registered users - the email includes a link to the
comment - but users must be logged in to read the comment.

What I want is for the user to click the link (from the email) - if they are
not logged in they will go to a fail page that allows them to log in - when
they log in, they will be redirected to the page from the email link.

Can someone give me some direction on how I would do this redirection?
--
View this message in context: http://n4.nabble.com/redirect-after-login-from-restricted-page-tp990697p990697.html
Sent from the Zend Auth mailing list archive at Nabble.com.


没有评论: