Prev | Current Page 30 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

. . . . . . . . . 449
Setting the Session Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
Choosing Cookies or URL Rewriting . . . . . . . . . . . . . . . . . . . . . . . . . 450
Automating URL Rewriting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
Setting the Session Cookie Lifetime. . . . . . . . . . . . . . . . . . . . . . . . . 451
Setting the Session Cookie??™s Valid URL Path. . . . . . . . . . . . . . . . . . 451
Setting Caching Directions for Session-Enabled Pages . . . . . . . . . 452
Working with Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
Starting a Session. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
Destroying a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
Setting and Retrieving the Session ID . . . . . . . . . . . . . . . . . . . . . . . 454
Creating and Deleting Session Variables . . . . . . . . . . . . . . . . . . . . . 455
Encoding and Decoding Session Data . . . . . . . . . . . . . . . . . . . . . . . 456
Practical Session-Handling Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
Automatically Logging In Returning Users . . . . . . . . . . . . . . . . . . . . 459
Generating a Recently Viewed Document Index . . . . . . . . . . . . . . . 461
Creating Custom Session Handlers .


Pages:
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42