Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

how to conserve a cookie session with php

hello

I would want to keep(preserve) the session of the script to avoid having to connect every time and replace cookies once more valid

ty

code http://pastebin.com/3v3a6w1e Do not publish
0
hexo dark
Asked:
hexo dark
  • 2
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
That is not going to work.  You always have to get the new session cookie.  Standard session expiration time is 1440 seconds (24 minutes) of inactivity.  Some time after that, the session will expire on the server and you will not be able to use the old session ID.
0
 
hexo darkAuthor Commented:
When we look at a video are you considered as an inactivity?
0
 
Dave BaldwinFixer of ProblemsCommented:
If you are not making any more page requests during that time, the answer is probably yes.
0
 
hexo darkAuthor Commented:
ty
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now