double logon

Justin Bowers asked on April 7, 2015 21:28

I have a logon form web part on a branched section of my site. Once a user successfully logs in, they are taken to a predefined URL that is stored in a custom user field when the user registers. The issue I am running into is that it takes two submissions on the logon form for the user to be truly "logged in." Any thoughts on why a double submission might be needed? My value in the Logon form web part for the "Default Target URL" is set to "{%cmscontext.currentuser.redirecturl#%}" where "redirecturl" is the custom field.

Recent Answers


Brenden Kehren answered on April 8, 2015 14:38

0 votesVote for this answer Mark as a Correct answer

Justin Bowers answered on April 8, 2015 15:04

Thanks, but that's not it. I'm thinking I should just have the form go to a static URL vs. a dynamic one and then do a redirect based off of what is stored on the user.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 8, 2015 15:51

Ok I follow you now. So you could create a webpart that does this. OR you could create a custom global event handler and capture the SecurityEvents and then perform your redirect there. This way it will be handled in all aspects and not just on a single page. Or if you're looking for a single page then the webpart is probably the best approach.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.