Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •