Apr 07, 2011 — 5 comments
A normal HTML website will not pass data from one page to another. In other words, all information is forgotten when a new page is loaded. This makes it quite a problem for tasks like a shopping cart, which requires data(the user’s selected product) to be remembered from one page to the next. Using session and cookie, helpful to keep track every movement of the visiting web page information.
If your website handles multiple subdomains and you want to retain the session while a user navigates through them. Here is a quick and easy fix.
Learn how to make a class to manage secure sessions on your PHP pages.
This is a very detailed tutorial about using PHP sessions. A session is like a variable that can transfer data between more pages.
Sessions is a good way for storing temporary data between your pages. A session is usually closed pretty fast after that the user have left the site so as I said, it's good for temporary storage, an example is the user's name or items the user have put in his/her shopping cart.
This is a common question we all get in most languages is how to make an Authentication system. I won’t blab on for hours talking about Authentication or how to achieve what I’ve created in this tutorial as I’m sure you’ll all be wanting to grab the code and get it working in your site.
We are developing a cool and simple login/registration system in a few easy to follow steps. You can download the complete source code and modify it to fit your own needs.
Want to know how to make a login in script that will remember your logged in. Even when you close your browser!
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?