B
Brian Lowe
I'm using Forms authentication with my user data in a SQL db. I have pages
in the main appliaction folder accessible to anonymous users and I've set
security to deny annonymous users access to pages in several sub folders
(e.g. admin). I've set up a login page where users trying to access any
/admin/ page are diverted to and on successful login they are redirected
back to the page they requested.
All is well. Everything works.
I want it to work a different way.
I want to display a user control on every page to enable a visitor to login
at any time (or log out if he's logged in) and to show options appropriate
to logged in users. I have it mostly working BUT when my user is on page
/somepage.aspx and logs in I want him to see page /somepage.aspx again
(revised with appropriate options for a logged in user) and *not*
default.aspx or any other page.
FormsAuthentication seems to demand that I send my user away to another
page, and uses Default.aspx if there isn't one specified in the URL.
How can I get my user authenticated and keep him on the same page?
I guess I'm looking for a
FormsAuthentication.AuthenticateButDontRedirectAnywhere() method.
Anyone done this? Anyone tell me where I should be looking?
Brian Lowe
---------@
in the main appliaction folder accessible to anonymous users and I've set
security to deny annonymous users access to pages in several sub folders
(e.g. admin). I've set up a login page where users trying to access any
/admin/ page are diverted to and on successful login they are redirected
back to the page they requested.
All is well. Everything works.
I want it to work a different way.
I want to display a user control on every page to enable a visitor to login
at any time (or log out if he's logged in) and to show options appropriate
to logged in users. I have it mostly working BUT when my user is on page
/somepage.aspx and logs in I want him to see page /somepage.aspx again
(revised with appropriate options for a logged in user) and *not*
default.aspx or any other page.
FormsAuthentication seems to demand that I send my user away to another
page, and uses Default.aspx if there isn't one specified in the URL.
How can I get my user authenticated and keep him on the same page?
I guess I'm looking for a
FormsAuthentication.AuthenticateButDontRedirectAnywhere() method.
Anyone done this? Anyone tell me where I should be looking?
Brian Lowe
---------@