Hello, I am pretty new to PHP, so my approch maybe strange.
I use the http authentification for user login, but the user needs to be able to re-login with a different user name (or the same).
I tried about every hint from the php.net manual but nothing worked. So I decided to use a time stamp like this when the form is submitted:
<?php echo '<form name="form2" method="post" action="'.$PHP_SELF.'?'.time().'">' ?>
Then I do a new authentification if I am still in a 3 second range of the timestamp like this:
if ((($url[query] > (time()-3)) AND $Logout <> ''") then Login
Obvisously this only works if the page was recently (re)loaded as the timestamp in the form is evaluated when the page loads.
How can I send the URL with timestamp when the button is pressed?
Or are there obvious ways to do this completely different?