[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

how to conserve a cookie session with php

Posted on 2015-01-02
4
Medium Priority
?
163 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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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 84

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

591 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