W
Wiktor Zychla
Hello,
I am an experienced Win.Forms developer and now I am learning ASP.NET
(no ASP background). there are some basic issues I do not understand and
cannot find any satisfable answers.
1. my application is configured to use Welcome.aspx as the default page.
after the succesful login via Forms authentication (user is redirected to
login.aspx) I try to reset the authentication via
FormsAuthentication.SignOut();
Response.Redirect( "login.aspx" );
this, alas, resets the FormsAuthentication.GetRedirectUrl( "userName",
false ); value to "default.aspx" (while beeing "welcome.aspx" for the first
time) and after the login procedure, the user is redirected to
"default.aspx" instead of "welcome.aspx".
the question:
a) how do I control the default page name, so it is not resets to
"default.aspx"?
2. I understand that to have any data shared by several pages I have to use
cookies to store the values. there's a special containter for such data in
the Application object (HttpApplicationState).
Questions:
a) where the typical browser stores these values? I tried to look for a
cookie in the user cookies directory with no success.
b) how to get rid of these values? even the browser restart does not resets
them.
Thanks in advance for your answers.
Wiktor Zychla
I am an experienced Win.Forms developer and now I am learning ASP.NET
(no ASP background). there are some basic issues I do not understand and
cannot find any satisfable answers.
1. my application is configured to use Welcome.aspx as the default page.
after the succesful login via Forms authentication (user is redirected to
login.aspx) I try to reset the authentication via
FormsAuthentication.SignOut();
Response.Redirect( "login.aspx" );
this, alas, resets the FormsAuthentication.GetRedirectUrl( "userName",
false ); value to "default.aspx" (while beeing "welcome.aspx" for the first
time) and after the login procedure, the user is redirected to
"default.aspx" instead of "welcome.aspx".
the question:
a) how do I control the default page name, so it is not resets to
"default.aspx"?
2. I understand that to have any data shared by several pages I have to use
cookies to store the values. there's a special containter for such data in
the Application object (HttpApplicationState).
Questions:
a) where the typical browser stores these values? I tried to look for a
cookie in the user cookies directory with no success.
b) how to get rid of these values? even the browser restart does not resets
them.
Thanks in advance for your answers.
Wiktor Zychla