Defining and Using Sessions
You can define cookies when using sessions or simply let the session manage cookies. When you start a PHP session, the session implicitly creates a session identifier cookie, provided the browser is configured to accept cookies. You should consider collecting that information using JavaScript embedded in your nonauthenticated login form. You can send that browser setting as a hidden input when the user clicks the HTML input widget and transmits his or her login information. When cookies are supported, you can use them, and when they’re blocked, you can implement URL rewriting.
The principal discussion in this section assumes the browser accepts cookies. The section “Applying Cookies and Sessions” later in the chapter ...
Get Oracle Database 10g Express Edition PHP Web Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.