SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to preserve php session variables when there is a glitch in net connection

    Suppose there is a variable is storied in a session variable $_SESSION['record'].
    And internet connection goes and comes again.
    This happens with unreliable ISPs.
    How to preserve the old value of $_SESSION['record'] in the new situation.

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By default config, the session values will persist for at least 18 minutes. Your config may vary.

  3. #3
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by crmalibu View Post
    By default config, the session values will persist for at least 18 minutes. Your config may vary.
    It is not persisting for even 5 minutes.

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you closing your web browser? Check to see if the web browser is maintaining the session cookie.

  5. #5
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by crmalibu View Post
    Are you closing your web browser? Check to see if the web browser is maintaining the session cookie.
    I didn't close browser window.


Tags for this Thread

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
  •