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
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 |
Answer / s.amey
You can set below Property on page:-
Page.Forward();
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
What are the server control tags in asp.net.?
What are Session states available and its Uses?
About SOAP ?
What is the request flow used for asp.net mvc framework? : asp.net mvc
Define state managenent?Descibe state managenent technique which maintain the information at server site focusing it IDS features and limitations?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
What is the difference between session and application?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
Explain difference between dataset and datareader?
What are the types of authentication in asp.net?
Explain asp.net application life cycle?
Define data caching?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)