how to conserve a cookie session with php

Posted on 2015-01-02
Last Modified: 2015-01-02

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


code Do not publish
Question by:hexo dark
  • 2
  • 2
LVL 82

Accepted Solution

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.

Author Comment

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

Expert Comment

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

Author Closing Comment

by:hexo dark
ID: 40528414

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now