logout

A

Anonymous

Guest
I made a little php-page which is called after clicking a link on my main page:
<? php
session_start();
session_destroy();
echo 'thank you';
?>
Unfortunately, I get this message:
Parse error: parse error, unexpected T_STRING in /home/ahcehc/paginas/tecmilenio/logout.php on line 2
What do I miss here?

Thank you in advance
 
Ok, I removed the space in the logout.php file:

<php
session_start();
session_destroy();
Header("Location: ../index.htm)
?>

This page is called from a link in a frame of a frameset with taget="_top" and the new location shows up. However, the Back-Button of my browser still works and gets me back into the protected area of my site. That is exactly what I want to avoid.
Maybe it is because I didn't put any 'session_start();' into the login file when entering the password protected area.
 
Back
Top