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

how can I avoid a page expired error?

The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.

How do you get around this?
Jul 17 '05 #1
8 4850
NotGiven wrote:
The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.
I suppose the page expired thing is when iexplorer needs to resend post
data to the server? Not sure anymore, but you could try to open a
session, store the post data and do a header ("location:");.
How do you get around this?


HTH,
S.

--
The most likely way for the world to be destroyed,
most experts agree, is by accident.
That's where we come in; we're computer professionals.
We cause accidents.
--Nathaniel Borenstein
Jul 17 '05 #2
"NotGiven" wrote:
The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the
results
again and....gets a page expired error.

How do you get around this?


I presume you are using a script from somewhere else. Check the html
source to set if there are any meta tags related to expiring (it is
easy to figure that out). If so, remove them from the php code.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-avoid-pa...ict139664.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=467180
Jul 17 '05 #3
"NotGiven" <no****@nonegiven.net> wrote in message
news:6U*****************@bignews4.bellsouth.net...
The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.

How do you get around this?


Don't use POST for submitting the search.
Jul 17 '05 #4
NotGiven wrote:
The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.

How do you get around this?


I found that using "session_start()" on the page submitting the form, or
on the target using POST, then returning to the first page will give
this error. Instead, I was forced to use cookies instead of sessions.

Jul 17 '05 #5
"neur0maniak" wrote:
NotGiven wrote:
The user searches and see the results, then clicks for more
detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.

How do you get around this?


I found that using "session_start()" on the page submitting the

form, or
on the target using POST, then returning to the first page will give this error. Instead, I was forced to use cookies instead of

sessions.

neur0maniak, I would not think so. After all, session and
cookie-based.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-avoid-pa...ict139664.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=467729
Jul 17 '05 #6
steve wrote:
"neur0maniak" wrote:
> NotGiven wrote:
> > The user searches and see the results, then clicks for more

detail
> in a
> > result. He then clicks the BACK button in the browser to see the

> results
> > again and....gets a page expired error.
> >
> > How do you get around this?
> >
> >

>
> I found that using "session_start()" on the page submitting the

form,
> or
> on the target using POST, then returning to the first page will

give
> this error. Instead, I was forced to use cookies instead of

sessions.

neur0maniak, I would not think so. After all, session and
cookie-based.

Try it and see for yourself.

Using a session_start() adds headers to the page that prevents caching
on the user's side
Jul 17 '05 #7
steve <Us************@dbForumz.com> wrote in message news:<41**********@news.athenanews.com>...
<snip>
> I found that using "session_start()" on the page submitting the

form,
> or
> on the target using POST, then returning to the first page will

give
> this error. Instead, I was forced to use cookies instead of

sessions.

neur0maniak, I would not think so. After all, session and
cookie-based.


http://in.php.net/session_cache_limiter

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #8
"NotGiven" <no****@nonegiven.net> wrote in message news:<6U*****************@bignews4.bellsouth.net>. ..
The user searches and see the results, then clicks for more detail in a
result. He then clicks the BACK button in the browser to see the results
again and....gets a page expired error.

How do you get around this?


If you're using sessions, this is caused by the default value of
session.cache_limiter being 'no-cache' in your php.ini file. You'll
need to change it to a less-restrictive value, which may or may not be
a security issue. In your case (a search) I'd guess it's not, and a
value of 'private' would solve the problem. http://us4.php.net/session
has more detail on session.cache_limiter settings.
Jul 17 '05 #9

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

Similar topics

4
by: John | last post by:
Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are supposed to answer each question, and when they...
1
by: ddddd | last post by:
Regarding the Internet Explorer message below: "Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a...
3
by: mgm | last post by:
How do you get a web app to not show the 'page has expired...' error and refresh and requery when you hit the back button after submitting a form? I just want the old data to still be displayed in...
0
by: Rob Meade | last post by:
Hi all, Can anyone post some code that will expire a page immediately and prevent caching, so if my users submits data on a form, a thank you page appears, if they then go foward a page and then...
2
by: moondaddy | last post by:
Often when browsing my site and using the forward and back buttons I get the err msg "Page has Expired " My pages are blank with a user control for the content. Is there something I need to be...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
4
by: Scott Shuster | last post by:
Hi, I've been searching and testing and have not yet found the answer I'm looking for. I have an ASP.NET (vb) application with an ecommerce function. When the user submits the page, I DON'T...
10
by: Atul Shukla | last post by:
Hi, How can I avoid application timeout? Generally a web application time out is 20 minutes, however, we can define this timeout in web.config to any number of minutes. After giving 500 minutes of...
3
by: =?Utf-8?B?cHJhZGVlcF9UUA==?= | last post by:
Hi All, Can anyone please explain me why I am not able to disable Browser caching in ASP.net by writing the following code Response.Buffer = true; Response.ExpiresAbsolute =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...

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.