Doug deloy: some Sample php code and apps

[HOME] [Form Example] [Session Example] [Email Validation ] [Regular Expressions ][deloycom home

Sessions

Tracking Visitors with Sessions

EXPLANATION:
1. The session is started with the session_start() function
2, The key in the $_SESSION associative array is visitor_count. The value assigned to it is 0.
3. Once the user refreshes the page the value of &_SESSION is incremented by 1.
4. The session_id() function returns the value of the current session id.

You are visitor number 1.
The session id is: d1118ccac883a16ecded057321095f53