SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    session expire problem

    session_cache_expire(1);
    $cache_expire = session_cache_expire();
    i have set the session exoire to 1 minute .But when i refresh the page the page is not expiring.
    I want to make the page expired after i minute how can i do it.
    ArunKumar

  2. #2
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sir,
    any solution
    ArunKumar

  3. #3
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    153 Post(s)
    Tagged
    3 Thread(s)
    Check that you have put this before session_start();

    SpikeZ
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  4. #4
    SitePoint Guru arunkumar's Avatar
    Join Date
    Jan 2005
    Location
    India:Chennai
    Posts
    827
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    session_cache_expire(1);
    $cache_expire = session_cache_expire();
    session_start();
    $newses = session_id();
    echo $newses;
    echo $sesid;
    if($newses != $sesid)
    {
    echo "Session Expired";
    exit;
    }


    This is my code i am getting the sesid from the previous page.
    Here i want to display session expiry afgter 1 minute.
    ArunKumar


Bookmarks

Posting Permissions

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