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

Explain why datareader is useful?

0 Answers  


What are the page level transaction and class level transaction?

1 Answers   Satyam,


Is asp.net and .net the same?

0 Answers  


What is Pre-Render event in ASP.NET?

0 Answers   MindCracker,


Explain about solution explorer window?

0 Answers  


Rate yourself in .net and sql database?

1 Answers   BrickRed, Infosys, Satyam, SP Software,


How would you create a permanent cookie?

0 Answers  


What are the asp.net 2.0 features?

0 Answers  


Which of the following .NET framework supports Web API?

0 Answers  


What is in a session cookie?

0 Answers  


What is data grid view in asp.net?

0 Answers  


what is SAP fullform

161 Answers   A3Logics, Amazon, DFD, Federal Mogul, Hol Info, IBM, Infosys, Jai Ganesh, Kesri Metal, Lupin, Microsoft, RPG, SAP Labs, SRS Group, TCS, Videocon,


Categories