Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
session_cache_limiter
Old 06-25-2005, 03:11 AM session_cache_limiter
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
Hi all

This is a very important issue in PHP
In PHP suppose you submit a form from say "form1.php" and get a page say "result1.php" as a result of the form submiited by form.php.

now result.php was generated using the information provided in form.php
again you go to any other page say page3.php
and you click on the back button in the Browser (IE Netscape warns first and then takes you to the previous page) the page you get says that
The page is expired this page was generated using the info you provided in a form
and IE doesn't resubmit the form automatically

Now I solved this problem by writing
session_cache_limiter('public');
in the result.php page before starting the session

but now the problem is if i go to this page the browser generates the page from the temporary internet files of my system as the session_cache_limiter caches all the pages in the Browser side
so each time i do modification in the pages i need to delete files from the internet options and refdresh again
Can any body help me?????????????
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
 
Register now for full access!
Old 06-26-2005, 05:16 AM
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Use header() to redirect the user after the form is submitted. This will prevent IE from asking to resubmit POST data when back button is pressed.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 06-27-2005, 04:40 AM
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
But the posted data will not be available in the page where we redirect to using header() function.
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
Old 06-28-2005, 02:23 AM
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Do header() AFTER you have processed the POST data
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to session_cache_limiter
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37889 seconds with 12 queries