Forums

PHP

This topic is locked

session destroy problem

Posted 23 Mar 2011 06:31:04
1
has voted
23 Mar 2011 06:31:04 muthupandi s posted:
hi,
am developing project using php. I use session for store login user details . after click logout button if click back button means previous user detials are shown.
<?php
session_start();
session_destroy();

header("Location:login.php";
?>
this is my code for clear session. what is wrong in this? Please any one help me.

Thanks in advance,
S.Muthu

Reply to this topic