Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to find last error which occurred in Asp.net ?

1193


What is difference cookie and session?

928


How you will improve web application performance?

992


What symbol would you use to denote, the start of a code block in aspx views?

918


What are the modes of updation in an updatepanel?

913


What are the advantages of using Master Pages?

976


Describe the difference between inline and code behind - which is best in a?

1081


Explain the difference between overriding and overloading?

948


What is the significance of attaching a profile while creating a user?

964


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

922


What is session id in web application?

1032


What is server side in asp.net?

932


Is session server side or client side?

909


What is simple data binding?

918


How would you get asp.net running in apache web servers? Explain it's limitations.

930