473,837 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

when you go back in browser, search results page does not display - how can you prevent?

Say you have three pages, a search page, a results/master, and a detail
page.

You choose parameters on your search page and submit the page.
The results show in the reults/master page.
You click one to go the details page.
You hit the browser button to go back and it shows the results/master page
but shows "Page has expired" error.

How can you prevent this? How can you show the results page whether you get
there forwards or backwards?
Jul 17 '05 #1
4 2585
"NotGiven" <no****@nonegiv en.net> wrote in message
news:<IC******* **********@bign ews3.bellsouth. net>...

Say you have three pages, a search page, a results/master, and a detail
page.

You choose parameters on your search page and submit the page.
The results show in the reults/master page.
You click one to go the details page.
You hit the browser button to go back and it shows the results/master page
but shows "Page has expired" error.

How can you prevent this?


You can either allow the results page to be cached or open the detail
page in a new browser window using <a href="detail.ph p" target=_blank>
or JavaScript. The latter will also allow you to specify the size
of the new window and show it without menu bar and status bar, so
it won't obscure the results window and the user will know they are
in a new window and can return to results by closing the detail window.

Cheers,
NC
Jul 17 '05 #2
how do you specify allowing the page to be cached? Thanks in advance
"Nikolai Chuvakhin" <nc@iname.com > wrote in message
news:32******** *************** ***@posting.goo gle.com...
"NotGiven" <no****@nonegiv en.net> wrote in message
news:<IC******* **********@bign ews3.bellsouth. net>...

Say you have three pages, a search page, a results/master, and a detail
page.

You choose parameters on your search page and submit the page.
The results show in the reults/master page.
You click one to go the details page.
You hit the browser button to go back and it shows the results/master page but shows "Page has expired" error.

How can you prevent this?


You can either allow the results page to be cached or open the detail
page in a new browser window using <a href="detail.ph p" target=_blank>
or JavaScript. The latter will also allow you to specify the size
of the new window and show it without menu bar and status bar, so
it won't obscure the results window and the user will know they are
in a new window and can return to results by closing the detail window.

Cheers,
NC

Jul 17 '05 #3
Nikolai Chuvakhin wrote:
"NotGiven" <no****@nonegiv en.net> wrote in message
news:<IC******* **********@bign ews3.bellsouth. net>...
Say you have three pages, a search page, a results/master, and a detail
page.

You choose parameters on your search page and submit the page.
The results show in the reults/master page.
You click one to go the details page.
You hit the browser button to go back and it shows the results/master page
but shows "Page has expired" error.

How can you prevent this?

You can either allow the results page to be cached or open the detail
page in a new browser window using <a href="detail.ph p" target=_blank>
or JavaScript. The latter will also allow you to specify the size
of the new window and show it without menu bar and status bar, so
it won't obscure the results window and the user will know they are
in a new window and can return to results by closing the detail window.


....or simply have the search form GET instead of POST...

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #4
"NotGiven" <no****@nonegiv en.net> wrote in message
news:<QO******* **********@bign ews3.bellsouth. net>...

how do you specify allowing the page to be cached?


By sending the appropriate headers to the client. Example:

header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Expires : ' . gmdate('D, d M Y H:i:s', strtotime('+1 hour')) . ' GMT');

This tells the client that the page was last modified when it was
called and will not change for an hour. So a smart client would
cache the page at the first load and won't attempt to load it again
if it visits it within an hour, but rather load a cached copy.

A word of caution: assuming a client is smart can lead to frustrating
results...

Cheers,
NC
Jul 17 '05 #5

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

Similar topics

16
15756
by: Dave Smithz | last post by:
Hi, In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained. Presently we get a "Page has expired" message. How can we avoid this? Full details: Having searched for postings on how to avoid the "Page has Expired" they are
8
2592
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and courses are populated. When course is selected, lists of occurrences, groups and
5
2420
by: Dan | last post by:
Hi, I'm going crazy here, please help. I have a parent page that has a user control on it that bubbles up data from a dropdown menu. The drop down menus are populated by a set of radio buttons, each populates the drop downs with unique data. All works well, you check a radio button and the onbubbleevent fires loading the drop downs. A user can then select an item from the drop down and be forwarded (Respose.Redirect) to the appropriate...
3
2416
by: Penny Bond | last post by:
Hi, Any help or suggestions on this one would be gratefully appreciated: I have 2 aspx pages one is called 'Query' and the other 'Details'. Query page has a number of text boxes and drop down's for parameter selection, a 'Search' button and a grid that displays the results (the results contain links to 'Details' page with query string params). The 'Details' Page allows user to see detailed information on the selected product.
6
3818
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many user get used to click "enter" key to submit a form. How can I use "enter" key to submit/postback in ASP.NET. Thank, Guoqi Zheng
11
7766
by: Joe | last post by:
Hello All, I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton (SearchButton) server controls. The user can type search text in SearchTextBox and click SearchButton and the web server performs a database query and displays the results. All of this works fine. I want the user to be able to press the Enter key while the cursor is still in SearchTextBox and have the SearchButton.Click event fire (thus performing...
4
16106
by: Sarvesh997 | last post by:
Hi, I have one problem regarding search & search results page in IE & Firefox. A code in both pages written in Php & database in MySQL Problem : When i selected one or more checkbox & dropdown items on search page & click on GO button then search result page open. & when i click on browser's BACK button then in IE "Web Page Expired" message dispayed & in firefox the search page dispaly. also i want when i come back to previous page...
6
4331
by: lucyh3h | last post by:
Hi, In one of my pages, I use javascript (AJAX) to populate one mulitple select field based on user's click event on another control. I noticed that when I navigate back to this page by clicking browser's "Back" button, the changes made to the multiple select is not preserved. (It shows the initial value). While all the other user selections are preserved. Firefox seems fine. How do I workaround this issue for IE?
1
1476
by: terryshamir | last post by:
Hi - I'm doing my first ASP project. In my App I present one asp page with parameters for a search (search.asp) - when they do a search the form is posted to another ASP page (displayresults.asp) which displays the results. They then select one of search results and submit to another page. IF the search didn't produce any results I would like the submit button on the displayresults.asp to sent them back to search.asp so user can...
0
9682
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
10875
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10623
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7806
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7001
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
5669
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
4474
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
4040
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3124
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.