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

Answers were Sorted based on User's Feedback



The question is "After sign out from email, Then we click a back button , we can't go to ..

Answer / 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

The question is "After sign out from email, Then we click a back button , we can't go to ..

Answer / s.amey

You can set below Property on page:-

Page.Forward();

Is This Answer Correct ?    0 Yes 0 No

The question is "After sign out from email, Then we click a back button , we can't go to ..

Answer / kumaran ns

Hi Lilly!
We have to write logic for that. Set History property to -1
or 0.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More ASP.NET Interview Questions

How do you declare static variable?

0 Answers  


Can master pages be nested?

0 Answers  


Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj

0 Answers   Accenture,


What is the main difference between a static page and a dynamic page?

2 Answers  


What is a page life cycle?

0 Answers  






About friend and Protected friend ?

3 Answers   MMTS,


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

0 Answers  


What are the contents of cookie?

0 Answers  


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

0 Answers   CTPL,


Why do you use the app_code folder in asp.net?

0 Answers  


Can you explain architecture of your project ?

0 Answers  


How .Net has implemented security for web applications?

1 Answers  


Categories