Disable Back button for a particular inputs from user

Z

zyaam

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 session values are
still alive. How to make redirect the user to another page if he
tries to enter into the application as in the above manner.
I donot want the back button to be
disabled.

bye

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
S

Steve C. Orr [MVP, MCSD]

To prevent page caching, use this code:

Response.Expires = 0

Response.Cache.SetNoStore()

Response.AppendHeader("Pragma", "no-cache")

--

I hope this helps,

Steve C. Orr, MCSD, MVP

http://Steve.Orr.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top