PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Do you mean that it still shows you as logged on *on the page you're viewing* that you clicked log out on?
If that's the case - it means the bit of code that handles the log out occurs after the output is created... This may not always be obvious, though - such as:
if($userloggedin)$login_display = 'User is logged in';
if($logout)$userloggedin = false;
echo $login_display;
Very over-simplified way that the code to handle being logged out occurs before the output is create that says they're still logged in ...
i have one page that got script to delete row from the database.
when i click "delete", its delete the row from the data base,
but doesent reload the page again =\.
so you see the same row as befor the deleteation
It still sounds like the same problem - that the script is deleting the data after sending the content ...
However, if (for some reason) it absolutely needs a refresh, why not simply reload the page? A few ways to do that - using a javascript reload or using a META tag is the easiest way...