473,748 Members | 9,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Logout Feature in ASP.Net Page

Hi Team,

I would like to know how "Logout" can be handled in asp.net page.

Scenario is like this:-
I have a "logout" option in my menu. As soon as user clicks this, will show
a "Sucessfull y Loged out" screen. Now the problem is, if the usr clicks on
"back" button of windows menu bar, control goes back to previous page.

I tryed with "Session" checking in page_load event of previous screen. but
when the user clicks on back, control never goes to "Page_load" event.

Please let me know the best prcactices for the above situation.

Thanks in advance.

-Vinod
Nov 18 '05 #1
2 2701
Looks into ASP.NET Forms Authentication. It handles all that stuff for you

"Vinod I" <Vi****@PMAM.co m> wrote in message
news:uL******** ******@TK2MSFTN GP10.phx.gbl...
Hi Team,

I would like to know how "Logout" can be handled in asp.net page.

Scenario is like this:-
I have a "logout" option in my menu. As soon as user clicks this, will show a "Sucessfull y Loged out" screen. Now the problem is, if the usr clicks on "back" button of windows menu bar, control goes back to previous page.

I tryed with "Session" checking in page_load event of previous screen. but when the user clicks on back, control never goes to "Page_load" event.

Please let me know the best prcactices for the above situation.

Thanks in advance.

-Vinod

Nov 18 '05 #2
Hi

Thx it is working. DO u know how to put cross mark in the
checkbox dynamically based on a value.

Thx
-----Original Message-----
Looks into ASP.NET Forms Authentication. It handles all that stuff for you
"Vinod I" <Vi****@PMAM.co m> wrote in message
news:uL******* *******@TK2MSFT NGP10.phx.gbl.. .
Hi Team,

I would like to know how "Logout" can be handled in asp.net page.
Scenario is like this:-
I have a "logout" option in my menu. As soon as user clicks this, will
show
a "Sucessfull y Loged out" screen. Now the problem is,
if the usr clickson
"back" button of windows menu bar, control goes back to
previous page.
I tryed with "Session" checking in page_load event of previous screen.but
when the user clicks on back, control never goes

to "Page_load" event.
Please let me know the best prcactices for the above situation.
Thanks in advance.

-Vinod

.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2838
by: sujeevan | last post by:
Hi, i have created a web. in the 1st page. user can login.after login i start the session and save it in his db-record. also the page give a link to my important page. in that page i check the saved sid and current sid.if both are equal it will display some details.that page have the logout link.when user click that link.the logout.php willwork.it generate a new sid for the same user. my problem is after logout when the user back from
5
2130
by: Michael D. Jones | last post by:
Hi all, I would like to have a delay on a logout page. Here is what I have so far: logout.aspx ----------- Page_Load() FormsAuthentication.SignOut(); Thread.Sleep(5000);
4
11238
by: ad | last post by:
I use the Login controls of Asp.net 2.0 in my program. I want to logout a user by program, I try Session.Abandon() for this. But I found that the user is the same after I execute Session.Abandon(). I thought that Session.Abandon() can break the connection of current user, but I fail How can I logout a user by program?
25
3329
by: crescent_au | last post by:
Hi all, I've written a login/logout code. It does what it's supposed to do but the problem is when I logout and press browser's back button (in Firefox), I get to the last login page. In IE, when I press back button, I get to the page that says "Page has Expired" but Firefox does not do this. I think it's something to do with sessions not properly unset or something like that but I haven't been able to figure it out. I am
1
14057
by: shrik | last post by:
hi everybody. I have following problem. There are two pages. index.jsp and main.jsp in my application Index.jsp contains logging interface in . It submits password and userid to loginform bean. following are entries in struts-config.xml file <action input="index.jsp" name="loginform" path="/login" scope="session" type="com.myapp.struts.loginaction"> <forward name="success" path="/main.jsp"/>
1
3327
by: Kandiman | last post by:
Hiya, i made a asp page, and one of my divs (as a include) is as below. the problem is if the main page is resubmitted, i get logged out again?... heres the code.. i think its on the value=true for the hidden textbox on the logout sub.. but how do i get round this? can i not change the value onclick? <div id=Rightbody> <!--<form id="RightBodyForm" name="RightbodyForm" method="post" action="Guestbook2.asp">--> <% Response.Expires...
4
3424
by: shahidrasul | last post by:
hi in my project when i click on logout anchor it goes to logout page and my code in logout page is if (Session != null) { Session = null; Session.Abandon(); Response.Clear(); FormsAuthentication.SignOut(); Response.Redirect("login.aspx"); }
6
5976
by: Thiago Macedo | last post by:
I could not find on the web a complete solution for this task. This is not the perfect solution, because it's doesn't have the ability to log the logout if browser crash or user leave it open while the session time out expires. So, any improvement would be apreciated. 1. Make the system frameable, by creating a frameset page with an unique frame - the system. So the user could navigate through the pages without "leave" the website.
10
4819
by: DavidPr | last post by:
When I logout as one user and log in under a different user, it opens with the last user's information. User 1 - Unsername: Davey Jones User 2 - Unsername: David Smith I log out from Davey Jones, then login as David Smith the Welcome message below will show "Welcome Davey". And it will be Davey's information that is accessible - not David Smith's. So something is amiss but I don't know what. (BTW, this login script is based on the...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.