Solved

how to conserve a cookie session with php

Posted on 2015-01-02
4
140 Views
Last Modified: 2015-01-02
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
Comment
Question by:hexo dark
  • 2
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40528347
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
 
LVL 2

Author Comment

by:hexo dark
ID: 40528357
When we look at a video are you considered as an inactivity?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40528386
If you are not making any more page requests during that time, the answer is probably yes.
0
 
LVL 2

Author Closing Comment

by:hexo dark
ID: 40528414
ty
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Currency in SQL? 2 31
PHP error function not working on AWS 10 74
Why will this INSERT statement not insert the date? 2 21
JQuery Search Filter 2 38
This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question