The question is "After sign out from email, Then we click a
back button , we can't go to the previous page ie inbox
page, It is displaying a login form only"
My doubt is How will code this , If u know please blog me
through this or my mail. my mail id is yoursguna@gmail.com
Answer Posted / lily antony
This is implemented through Authentication and Authorisation
In the web.config file
set the Authentication tag as
<authentication mode="Forms">
<forms name="myforms" loginUrl="LoginPage.aspx" >
</forms>
</authentication>
This means you are using forms authentication and the login
page name is LoginPage.aspx.
and the autorisation tag as
<authorization>
<deny users="?"/>
</authorization>
This means deny unauthenticated users.
In the LoginPage's Authentication Logic use the following
code if the user is valid.
FormsAuthentication.RedirectFromLoginPage
(txt_UserName.Text, false);
In the logic of the Signout button use
FormsAuthentication.Signout();
In all innerpages set the following code in the pageload
Response.Expires = 0;
Response.CacheControl = "no-cache";
For complete explanation refer Forms Authentication and
authorization in msdn.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Which object encapsulates state or data of a user?
What are the advantages and limitations of query string?
Define data caching?
What are triggers of an updatepanel?
What is ispostback property?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
What is connection pooling and how to enable and disable connection pooling?
Can you use c# without .net?
Describe the events in the life cycle of a web application.
How do session tokens work?
What are the different types of sessions in asp.net? Name them?
Is it possible to migrate visual interdev design-time controls to asp.net?
How do I use response redirect?
What is the procedure to handle the process request using mhpm events fired? : asp.net mvc
What is sql data source control in asp.net?