Saturday, September 12, 2015

Destroy a session in PHP

Suppose a session have started and you want to destroy the whole all data of session.
You can use the following inbuilt function of php.

session_start();
session_destroy();

This will destroy all the session and all the data associated with it.

No comments:

Post a Comment

MS SQL : How to identify fragmentation in your indexes?

Almost all of us know what fragmentation in SQL indexes are and how it can affect the performance. For those who are new Index fragmentation...