Home » » session_destroy

session_destroy

Written By 1 on Sunday, September 30, 2012 | 9:39 AM

bool session_destroy ( void )

Destroys all data registered to a session


If you are using a custom save handler (i.e. calling session_set_save_handler ) - like you would for DB based session handling. If you call session_destroy, followed by session_start, you will get an error.



You need to re-call session_set_save_handler with the lines you previously did (e.g.

session_set_save_handler('mysql_session_write_func') )


SignUp form, SignIn form, Database, Session Variable: PHP & MySQL

0 Comment:

Post a Comment