stuckwithcode Posted February 4, 2010 Share Posted February 4, 2010 Hello, I cant seem to get my newly updated php sessions to display there new values until I refresh the page. I use onunload to run a page that deletes the sessions but when I go back to my page the old sessions are there untill I refresh the page. Any help? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted February 4, 2010 Share Posted February 4, 2010 Hello, I cant seem to get my newly updated php sessions to display there new values until I refresh the page. I use onunload to run a page that deletes the sessions but when I go back to my page the old sessions are there untill I refresh the page. Any help? PHP is a server-side language. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 4, 2010 Share Posted February 4, 2010 Dynamically generated pages, where the content at the same URL can be different for each page request, must specifically contain headers that prevent the caching of the content on the page. A lot of web hosting specifically outputs headers that cause content on a page to be cached (in order to reduce server load). You must output your own headers to override this behavior for dynamically generated pages. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.