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

Which is the parent class of the ASP.NET server control?

1107


What are the session variables?

1033


Explain about Multi-Language integration?

1070


What is meant by server side scripting?

1010


What is the difference between visual basic and asp.net?

1119


What is query string?

1058


8. Why do you want to work here?

1976


What is the difference between session object and application object?

1091


How can I open ashx file in mobile?

1210


How does asp.net work?

1000


Define common type system?

1032


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

1066


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

1278


What is the usie of activex control in .net?

1051


What is ipostback?

1132