Summary
This chapter has been a brief introduction to one of the main uses of PHP sessions: restricting access to web pages in a seamless fashion without the need to locate everything in a dedicated folder. Session variables can be used anywhere you have a need for maintaining continuity. Once a visitor has been given a session identity, session variables associated with that visitor’s computer can be accessed by any PHP script until the variable is explicitly unset or the session is brought to an end. In the Flash context, the main value of sessions lies in user authentication in combination with a database.
Although sessions provide a simple and effective way of controlling access, they should not be confused with secure connections. They are not sufficient on their own for protecting hypersensitive information or financial transactions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2005 David Powers
About this chapter
Cite this chapter
(2005). Protecting Your Data with Sessions. In: Foundation PHP 5 for Flash. Apress. https://doi.org/10.1007/978-1-4302-0013-0_9
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0013-0_9
Publisher Name: Apress
Print ISBN: 978-1-59059-466-7
Online ISBN: 978-1-4302-0013-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books