Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to conserve a cookie session with php

Posted on 2015-01-02
4
Medium Priority
?
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
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.

715 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