homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Sessions and caching
What type of caching?

 3:22 pm on Aug 12, 2005 (gmt 0)

Hi all,

I'm trying to work with sessions for a moment and noticed that session's usage triggers cache control method and pragma switching to no-cache.
I've read that session.cache_limiter parameter can be used to specify the type of caching (none/nocache/private/private_no_expire/public).

Is no-cache method really needed by session mechanism?
If no, what caching type is better for SE?

Thanks in advance.



 4:04 pm on Aug 12, 2005 (gmt 0)

I think the problems can start when the users starts hitting the back button. For example if a user makes changes to a database and on the next page hits back, if the browser is told to hold a cache, it will show the cache once the back button is hit.... you see the problem...


 4:22 pm on Aug 12, 2005 (gmt 0)

To say the truth - the caching method depends only on you.
If you use the session only to get info about user (how many pages visited, etc) then you can cache everything
If you have some private page - don't cache it
If the page is randomly generated (eg game) don't cache it

So really the caching depends only on the usage.
Hope this cleares things a bit
Best regards
Michal Cibor


 6:34 pm on Aug 12, 2005 (gmt 0)

Thanks a lot for your answers.
My pages have randomly generated elements, so, i believe it's better to leave it as no-cache.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved