close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

session_start() breaking headers?

Thread began 9/30/2017 8:06 pm by Chris | Last modified 10/02/2017 4:05 pm by Ray Borduin | 36 views | 3 replies |

Chris

session_start() breaking headers?

I am running pages on cloudflare and attempting to fully cache php pages that have this script running, however, every-time I check the headers they are reset to Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache which is preventing the pages from caching. Could the session_start(); call in is rosbj.php be resetting my headers? Do I need to add session_cache_limiter('public') someplace to correct this? All other pages without this script running are caching fine so it is something with this script. Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

If you want the page fully cached, what are you using the session for? If you are displaying content based on the session, then you wouldn't want the page cached or the information wouldn't be updated properly.

Sign in to reply to this post

Chris

The session is from your mysqli code when it is run on my page. If I have a a dynamic page where a URL variable is changing the content of the page it is beneficial from a resource stand point to cache that content. So if test.php?id=1 is different from test.php?id=2 why not cahce on my CDN? Which is what I am trying to do, but it appears the MYSQLi server behavior is overriding my server headers. Since I did not write the code for this extension, basically I am asking how do I edit it to stop it from breaking my headers and preserve the integrity of the code I purchased?

Sign in to reply to this post

Ray BorduinWebAssist

You can remove the session start line to see if that is what is causing the problem. It shouldn't effect the page otherwise if you aren't using session variables. Give it a try.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...