Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-19-2008, 10:18 AM   PM User | #1
Xuhybrid
New to the CF scene

 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Xuhybrid is an unknown quantity at this point
Sessions, Cache and Forms

I will try to explain my situation, my problem, and what i want.

My situation:
I am building a forum, something like this one, but of my own design, features and is linked to all websites in my company Shiftax. You will be able to get the exact examples if you think you need them, at www.shiftax.com/forum.php.

My problem:
When i submit a form, and it fails, or lets say, i want to switch my location via a jump box, without losing any of the form variables (with the same page loading).. then when i hit back the form has been cleared (because a new page has been loaded). I am having trouble doing this the exact way i see it in other websites.

I want:
I want to be able to go back and my form details will still be there, i have achieved this (woot victory), it seems i have finished my task. But now when i hit refresh, no new content is loaded onto the screen. I am building a forum like this which is ever changing with new content, a dynamic site if you will.

Here is the setting i am using before session_start();
ini_set('session.cache_limiter', 'private');

I learnt that session_start() loads cache information, read more here;
http://shiflett.org/articles/how-to-...pired-warnings

For this to work i had to remove my META tags setting no-cache rules.

Back to what i want:
After soaking up that information, you should understand.
I want my back button to hold the cache information.
I want my refresh button to get the information from the server again.

Can you help, because no other website has helped me so far?
Xuhybrid is offline   Reply With Quote
Old 07-19-2008, 10:44 AM   PM User | #2
Xuhybrid
New to the CF scene

 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Xuhybrid is an unknown quantity at this point
I continued my search and stumbled onto this answer.
//ini_set('session.cache_limiter', 'private');
session_cache_limiter('none');
session_start();

Hope this helps if you have my problem.
Xuhybrid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:01 AM.


Advertisement
Log in to turn off these ads.