473,387 Members | 1,453 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,387 software developers and data experts.

how can I make disable the back button of browser

Dear Programmers,

when I click on logout button I redirect my page to login page again,
session variables to null, but when I click on back button previous
page is appeared.

so plz tell me how I make disable the back button of browser.....
Jun 27 '08 #1
5 2796
sethia4u wrote:
Dear Programmers,

when I click on logout button I redirect my page to login page again,
session variables to null, but when I click on back button previous
page is appeared.

so plz tell me how I make disable the back button of browser.....
Are you using FormsAuthentication in your application. If so then
you just add the following code on your on logout click.

FormsAuthentication.SignOut();
Response.Redirect(Request.UrlReferrer.ToString());

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40
Jun 27 '08 #2
On May 14, 9:15*am, Jayakrishnan <jayakrish...@iinterchange.com>
wrote:
sethia4u wrote:
Dear Programmers,
when I click on logout button I redirect my page to login page again,
session variables to null, but when I click on back button previous
page is appeared.
so plz tell me how I make disable the back button of browser.....

Are you using FormsAuthentication in your application. If so then
you just add the following code on your on logout click.

FormsAuthentication.SignOut();
Response.Redirect(Request.UrlReferrer.ToString());

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40
thanx for ur precious response but, i'm not using FormsAuthentication
in my application.... I'm using manually authentication through SQL
Server 2000 and if....else statement....
plz give me reply in this matter....
Jun 27 '08 #3
sethia4u wrote:
On May 14, 9:15 am, Jayakrishnan <jayakrish...@iinterchange.com>
wrote:
>sethia4u wrote:
>>Dear Programmers,
when I click on logout button I redirect my page to login page again,
session variables to null, but when I click on back button previous
page is appeared.
so plz tell me how I make disable the back button of browser.....
Are you using FormsAuthentication in your application. If so then
you just add the following code on your on logout click.

FormsAuthentication.SignOut();
Response.Redirect(Request.UrlReferrer.ToString()) ;

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40

thanx for ur precious response but, i'm not using FormsAuthentication
in my application.... I'm using manually authentication through SQL
Server 2000 and if....else statement....
plz give me reply in this matter....
Add this code on logout button page. This may help you.

<script>
javascript:window.history.forward(1);
</script>

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40
Jun 27 '08 #4
On May 14, 10:02 am, sethia4u <sethia.prash...@gmail.comwrote:
On May 14, 9:15 am, Jayakrishnan <jayakrish...@iinterchange.com>
wrote:
sethia4u wrote:
Dear Programmers,
when I click on logout button I redirect my page to login page again,
session variables to null, but when I click on back button previous
page is appeared.
so plz tell me how I make disable the back button of browser.....
Are you using FormsAuthentication in your application. If so then
you just add the following code on your on logout click.
FormsAuthentication.SignOut();
Response.Redirect(Request.UrlReferrer.ToString());
--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40

thanx for ur precious response but, i'm not using FormsAuthentication
in my application.... I'm using manually authentication through SQL
Server 2000 and if....else statement....
plz give me reply in this matter....
check it
http://dotnetslackers.com/articles/a...erverCode.aspx
Jun 27 '08 #5
On May 14, 11:18*am, Jayakrishnan <jayakrish...@iinterchange.com>
wrote:
sethia4u wrote:
On May 14, 9:15 am, Jayakrishnan <jayakrish...@iinterchange.com>
wrote:
sethia4u wrote:
Dear Programmers,
when I click on logout button I redirect my page to login page again,
session variables to null, but when I click on back button previous
page is appeared.
so plz tell me how I make disable the back button of browser.....
Are you using FormsAuthentication in your application. If so then
you just add the following code on your on logout click.
FormsAuthentication.SignOut();
Response.Redirect(Request.UrlReferrer.ToString());
--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40
thanx for ur precious response but, i'm not using FormsAuthentication
in my application.... I'm using manually authentication through SQL
Server 2000 and if....else statement....
plz give me reply in this matter....

Add this code on logout button page. This may help you.

* *<script>
* *javascript:window.history.forward(1);
* *</script>

--
Regards,
JAYAKRISHNAN V,
TECHNOLOGY GROUP.
iInterchange Systems Pvt. Ltd.,
Chennai-40- Hide quoted text -

- Show quoted text -
thanx a lot Ur suggested coding helps me lot.
thanking u very much again....

bye
Jun 27 '08 #6

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

Similar topics

2
by: ourspt | last post by:
Hi, We are working on a .NET application (ASP.NET/VB.NET). We need to suppress (disable) the 'Back' button in the menu of the browser. What is the way to do that? Thanks in advance oursmp
3
by: sonu | last post by:
I want to disable the browser referesh and back button. is there any way in .net for above. Regards Amit
2
by: zyaam | last post by:
hi If a user logs into an aspx applicaiton and in the same browser goes to some other site say google.com and when he presses back button, he is able to come back to the application since the...
1
by: JIM.H. | last post by:
Hello, How can I disable Back button in the internet explorer for my ASP.Net C# application. Thanks,
9
by: Joe Delphi | last post by:
Hi, When users log out of my web application, I want to disable the back button so that they cannot "back into" the application after they have logged out. Can someone tell me the best way to...
6
by: me2tech | last post by:
Please let me know how to disable back button in Browser
1
by: manojhardwani | last post by:
I don't want users to use back button in web browser, if this is possible, when users click back button the message 'Page is Expired' should be given.
3
by: romeo971987 | last post by:
disable back button..... page should no do postback... i used history.go, history.back, session.abandon...and many more...but still previous page shows.... help me to expire the previous page.......
3
by: abhishekbrave | last post by:
Is it possible to disable back button of a browser in java script. Any pointers will be very helpful so that I can do some workaround on the same
2
by: SwapnilD | last post by:
How tdo I disable a back button for SAFARI browser... I tried below mentioned code but it only works for IE and I want it to disable only for SAFARI. <SCRIPT language="javascript"> ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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,...

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.