Forum Moderators: coopster
In a book I'm reading, they use a $_SESSION array as a means of storing user data and then accessing that data in other pages which require authorization. This book, however, is not using start_session() - it's just loading the $_SESSION array after a successful log-in, and then verifies the 'username' element of the array on each page of the restricted section.
On the other hand, after reading the example login script by Jatar K in the PHP Library, he (she?) does implement start_session() at the beginning of the log-in script as well as the beginning of the authorization script on each page that requires authorization.
What's the right way to do this? With or without start_session()? What are the pros and cons of each implementation?
Neophyte
Neophyte.