Solved

Refresh Prob - Cache

Posted on 2002-03-06
10
230 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
Comment Utility
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
Comment Utility
no, how does php decide on cache , is there anything in php.ini
0
 
LVL 5

Expert Comment

by:dkjariwala
Comment Utility
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
 

Author Comment

by:pramod_od
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 5

Accepted Solution

by:
dkjariwala earned 50 total points
Comment Utility
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
Comment Utility
You are right JD,  prob solv pts r urs
0
 

Author Comment

by:pramod_od
Comment Utility
Will this ruin my session tracking
0
 
LVL 5

Expert Comment

by:dkjariwala
Comment Utility
Great that you sorted it out !! :)

JD
0
 

Author Comment

by:pramod_od
Comment Utility
Will my session tracking get jackd
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now