Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: SESSIONS

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Posts
    5
    Member #
    1116
    Hello,
    I was wondering - I'm using PHP SESSION in PHP4.2 and the session_start() function at the top of my PHP page. However, when I hit the back button it says 'This page has expired'. Whats the problem?

    Cheers,
    Ed

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Was your page generated by a form's POST method? That's what causes that text to appear.

    Pressing F5 and clicking Yes forces it to repost the data.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Junior Member Kriek's Avatar
    Join Date
    Mar 2003
    Location
    Florida
    Posts
    16
    Member #
    828
    If you have access to you php.ini change your session cache limiter to read session.cache_limiter = none;

    or in php session_cache_limiter('none');

    To be more precise:

    PHP Code:
    session_cache_limiter('none');
    session_start();
    $expires = (function_exists('session_cache_expire') ? session_cache_expire() : 60 ) * 60;
    $gm_expires gmdate('D, d M Y H:i:s'time() + $expires);
    header("Cache-control: private, max-age=$expires, pre-check=$expires"); 
    header("Expires: $gm_expires GMT");
    header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT"); 
    Everyone remain calm, I've done this before.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:30 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com