Hello: I would like to know how after a session destroy, how can I afterwards load the index page. What`s the code for doing that.
thanks in advance
you mean something like: header ("location:index.php"); exit(); ?
Thank you thessoro.
I`m getting an error message
Warning: Cannot modify header information - headers already sent by (output started at C:\www\socio.php:6) in C:\www\socio.php on line 172
And it wont go back to index.
Any chance you might help me here again?
I think I might have a problem with the form action
Can you help me call it. What should the action be? Should I load inside the same page? or should the action load another page?
the header must be the first information sent to the browser...
How can I solve my problem then. On the page I have I now see that I do send info inside the page and reload it. I want to be able for them to have the posibility to end his session, and then load the index.php . My question is how? What is the best way. For example something that works on this page. After I press Submit reply i then go to the another page. I would like to session_destroy(); and then goto index.php
How would it be?
make sure there is no output to the browser before sending the header. even a blank line throws this "Warning: Cannot modify header information - headers already sent by...". so place the
<? session_destroy(); header("Location: yourpage.php"); ?>
directly at the top of the page you reload...
hope this helps.
SEI GRANDE, SEI BRAVO
THANK YOU SO MUCH
THAT WAS IT
TOP OF THE PAGE.
😃