RedirectFromLoginPage to multiple paths

S

Sehboo

Hi,

I have form authentication, and am using RedirectFromLoginPage to
redirect to the page which is set by 'Set as start page'. My question
is, can I decide at run-time where I want to redirect to?

Based on userid of the user, I want to redirect that user to a
different page. If you are VP, then goto VP page, if you are manager
then goto manager's page. How can I achieve this?

Thanks
 
B

Brock Allen

Yes. Instead of FormsAuthentication.RedirectFromLoginPage, call FormsAuthentication.SetAuthCookie
then call your own Redirect.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top