Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Refresh Prob - Cache

Posted on 2002-03-06
10
233 Views
Last Modified: 2008-03-17
Hi There
 Iam using php4 wt Apache on linuxsrever, i have a drop down menu in my site for navigation, the pages ar e called by making form submission, but the problem is once the next page is called , if i hit the back button i get page expired , u need to refresh
Is there any configraton to be changed on the web server , for the browser to cache the page because this works fine on asp wt IIS
Pramod
0
Comment
Question by:pramod_od
  • 5
  • 4
10 Comments
 
LVL 8

Expert Comment

by:us111
ID: 6844601
hmm strange it should work.
Do you have header("no-cache..         ) into the first page ??
It could be your problem
0
 

Author Comment

by:pramod_od
ID: 6846511
no, how does php decide on cache , is there anything in php.ini
0
 
LVL 5

Expert Comment

by:dkjariwala
ID: 6846999
Are you by any means using session to generate the form ?
If form is HTML one, then this won't happen for sure.

Let me know,
JD
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:pramod_od
ID: 6847037
I am keeping sessions but it has nothing to do with the form, basically the submission calls the the file for option clicked on the  menu
0
 
LVL 5

Expert Comment

by:dkjariwala
ID: 6847049
No it has to do with sessions.

How you are passing session id ?
If you are not passing it manually and using PHP's enable-trans-id option then let me tell you that it would use cookies to pass on session id which has headers which may cause page to expire.

Check,

http://www.php.net/manual/en/function.session-cache-limiter.php

I guess this should solve the problem,

JD
0
 
LVL 5

Accepted Solution

by:
dkjariwala earned 50 total points
ID: 6847060
Yeah,

Let me tell you,
when you do session_start call,

Just put up this statment,

session_cache_limiter('public');

JD
0
 

Author Comment

by:pramod_od
ID: 6847089
You are right JD,  prob solv pts r urs
0
 

Author Comment

by:pramod_od
ID: 6847106
Will this ruin my session tracking
0
 
LVL 5

Expert Comment

by:dkjariwala
ID: 6847108
Great that you sorted it out !! :)

JD
0
 

Author Comment

by:pramod_od
ID: 6847552
Will my session tracking get jackd
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question