Hindi Songs

Search About PHP!!!

Tuesday, July 7, 2009

Destroying a Session

If you wish to delete some session data, you can use the unset() or the session_destroy() function.

The unset() function is used to free the specified session variable:

< ?php
unset($_SESSION['views']);
? >

You can also completely destroy the session by calling the session_destroy() function:

< ?php
session_destroy();
? >

PHP allows you to send e-mails directly from a script.