473,410 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

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 "Sucessfully 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 2687
Looks into ASP.NET Forms Authentication. It handles all that stuff for you

"Vinod I" <Vi****@PMAM.com> wrote in message
news:uL**************@TK2MSFTNGP10.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 "Sucessfully 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.com> wrote in message
news:uL**************@TK2MSFTNGP10.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 "Sucessfully 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
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...
5
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
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()....
25
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,...
1
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. ...
1
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...
4
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(); ...
6
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...
10
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.