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


Please Help Members By Posting Answers For Below Questions

What is the difference between application state and session state in asp net?

514


What is a server farm in iis?

539


Define common type system?

587


Explain the advantages of caching?

536


How will create assesblies at run time?

560






What are merge modules?

562


What is mvc in angular?

565


What is http session state?

525


In a Repeater control how one can provide an alternating color scheme ?

573


What’s difference between “optimistic” and “pessimistic” locking?

581


Explain the differences between managed and unmanaged code?

502


What is the difference between adding reference in solution explorer and adding references by using ?

580


Can you change a master page dynamically at runtime? How?

511


Why SessionID changes in every request in asp.net?

552


How to implement globalization and localization in the use interface in .net.

540