Using Advanced Functions to Maintain the State of Applications with PHP Sessions (
Page 1 of 4 ) Here we are again. This is part two of the series “Maintaining the state of applications with PHP sessions." In three parts, this series ranges from the basics of session management in PHP, such as creating, registering session data, and destroying sessions, to exploring advanced concepts, like working with different session storage modules and creating custom session handling objects.Introduction
Before I dive into the subject of this second tutorial, I’ll go quickly over the topics that I explained in the first article, so it will be easier for you to understand some of the advanced PHP session features that I plan to discuss in the next few lines. As you’ll certainly recall, I started this series explaining the basic features of the PHP session management module, and showed some illustrative examples of how to create PHP sessions and store session data. In addition, I explained how to manipulate session identifiers and retrieve and manage some of the most common session-related settings included within the corresponding php.ini configuration file.
Based on the features that you saw previously, getting started using the basics of PHP sessions is really a straightforward process, which before long can help you in the development of simple session-based scripts with minor hassles. Moreover, if you’re a PHP developer with an intermediate grounding in PHP sessions, then probably you’ve already used some of the advanced features included in the corresponding session management module.
On the other hand, if you’re still not that familiar with the set of advanced session functions exposed by PHP, in this article I’ll take a look at them, in order to demonstrate with several code samples how to use them and how to take advantage of their many capabilities. Hopefully, when you finish reading this article, you should have a decent understanding of how to include advanced session handling routines within your own PHP-driven applications.
After defining the guidelines for this tutorial, it’s time to go ahead and explore some of most interesting PHP session-related functions. Let’s get started.
| | Discuss Using Advanced Functions to Maintain the State of Applications with PHP Sessions | | | | | | | In this part of the series, you'll learn how to tweak the PHP session storage... | | | | | | Hi Alejandro, I greatly appreciate your efforts in bringing us these useful... | | | | | | Hi Rafael,
Thank you for commenting on my PHP article. Regarding your question,... | | | | | | Hi Alejandro, thank you so much for the example, it worked to perfection. I'm so... | | | | | | Hi Rafael,
Thank you for the kind word on my PHP articles, and certainly I feel... | | | | | | Hello again Alejandro, I run into a bug as I got my application onto the production... | | | | | | Hi Rafael,
Thank you for posting your comments. Concerning your particular... | | | | | | Hi Alejandro, a million thanks for your help. I stayed awake for a long time last... | | | | | | Hi Rafael. I'm glad to know you fixed up the problem regarding the use of mysqli and... | | | | | | Hi alejandro
Its me again, ive been making your tutorial as my book, im working... | | | | | | Hi Alejandro,
thanks for this wonderful tutorial.
When i tried to use your... | | | | | | Hi Roy,
Thanks for posting your comments, and I’m glad to know you’re learning... | | | | | | Thansk again for the comments. In fact, $id isn't necessary when coding this... | | | | | | Hello Alejandro,
Thanks for the prompt reply. Im still confused, on your reply you... | | | | | | Hello Alejandro,
I temporarily placed this code inside the writeSession()... | | | | | | Hi Roy,
with your last example, I see the possible reason of your problem.... | | | | | | Hello alehandro...
i set up my expiry as a timestamp, and that the expiry colum... | | | | | | Hello Roy,
Thanks for the comments. Using "time()" to insert your timestamps is a... | | | | | | >>> Post your comment now! | | | | | |
|
 |
|