Solved

Refresh Prob - Cache

Posted on 2002-03-06
10
231 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

919 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

12 Experts available now in Live!

Get 1:1 Help Now