Hi, Michal Januszczyk,
You can call FormsAuthentication.SetAuthCookie(string, bool) and then simply
Response.Redirect the user where you want to.
Hope this helps
Martin
"Michal Januszczyk" <(E-Mail Removed)> wrote in message
news:8C363A26-47F8-45FD-B762-(E-Mail Removed)...
> Is there any possibility to redirect user (after having authenticated him)
> to some custom aspx page, not the original that he requested and which
> caused him to be shown the logon screen ?
>
> now, I call :
>
> if(IsAuthenticated(user,password))
> {
> FormsAuthentication.RedirectFromLoginPage(user,false);
> }
>
>
> I would like however, that I could call something like that:
>
> if(IsAuthenticated(user,password))
> {
> MarkUserAsAuthenticated(user) //attach some cookie or something..
> RedirectToCustomURL(user,false);//goto custom page, not necesserily the
original that redirected the user here
>
> //the above two lines are currently merged into one
(formsAuth.RedirectFrom..())
> //but this does not allow me to tell where the user should go..
> }
>
> Thanks for help
> Michal
|