Hi, I have cookies that are being used to preserve state. When the user clicks on the back button of the browser to go to the previous page, I'd...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer
Hi, I have cookies that are being used to preserve state. When the user clicks on the back button of the browser to go to the previous page, I'd like to revert the cookie's state to what it was on the previous page. Similarly, when the user clicks the forward button of the browser, I'd like to set the cookie to its state on that page. Is there a way to do so? Thanks. -Shefali (Shefali Sinha, Consultant, First Registry, s**a@hotmail.com)
Last updated
Matthew Pomar
Customer Support
I guess it all depends on what you are trying to accomplish here. There are all kinds of ways to do this, the first that comes to mind is to use the body onload event to set the cookie value when the page is loaded. Regards, Matthew Pomar m**r@aspsites.com
Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!