Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Plz tell me full fleshed coding for login page.....
Posted
Comments
Ra-one 21-Jun-11 7:35am    
Well if you really want to learn anything... Start something yourself... never expect everything from other.... Come with a good question next time

Well, first of all, is it ASP, or ASP.NET ? Second, when did your last servant die ? Third, why do you know so little as to expect we can answer this ? Your login is stored based on a session variable, if it's done right at all. But how can we know what that variable is ? Set it to null, and the user should be logged out, if your code is not a disaster.
 
Share this answer
 
Hope this[^] might help you.

From your question we came to know that you are the beginner in coding. So better read some online books and then proceed further.
 
Share this answer
 
Use of sessions is very import important while designing any website.

Here is the code:


protected void btnlogout_Click(object sender, ImageClickEventArgs e)

{


Session.Abandon();

Session.Contents.RemoveAll();

System.Web.Security.FormsAuthentication.SignOut();

Response.Redirect("../Login.aspx");



}



Javascript:

<script language=""javascript"" type=""text/javascript"><br" mode="hold" />history.forward();



</script>
 
Share this answer
 
v2
Well, you can use <b>Session.Abandon()</b> for logout, and redirect to Login page directly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900