If you are directing this to a page that strictly does the logout
(logout.aspx), you can simply put it in the Page_Load and forward the user. I
have seen this pattern in numerous apps (I don't particularly like it, but it
works okay).
As you do not need a page necessarily, you can set up a Logout class and
call it. The danger in this pattern is you can call from too many points to
keep track.
I would, at minimum, wrap the logout into a control (user, server) to have
one point of logout.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"Mike P" wrote:
I have a series of anchor tags in a menu. I have added a logout option
to this menu, and I need to end the user session on the logout, which
redirects to the default page. Would it be a good idea to use
Session.Abandon in the Page_Load of the apps default page to do this, or
should I keep this out of the default page and create some code specific
to the logout?
Thanks,
Mike
*** Sent via Developersdex http://www.developersdex.com ***