Skip to main content

Protecting Your Data with Sessions

  • Chapter
Foundation PHP 5 for Flash
  • 288 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics