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? 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
"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
"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.
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" 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
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
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
"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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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 =...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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...
|
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...
|
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: 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...
|
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...
| |