|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
After logout.php, it goes back to logon.php screen which I want. But when I use browser's back button, it still lets me in.
After the logout.php URL changes to this URL What ?logmeout bit at the end of my URL here ? what does it do? Here is the logout code for the page -------------------------------------------------------------------------- <?php // start the session session_start(); ?> <html><!-- InstanceBegin template="/Templates/ICI_Template.dwt" codeOutsideHTMLIsLocked="false" --><head> <!-- <link rel="shortcut icon" href="favicon.ico" /> --> <!-- InstanceBeginEditable name="doctitle" --> <title>iCollectIt</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --> </head> <body topmargin="2"> <table width="95%" border="0"> <tr> <td width="247" height="62" valign="top"><img src="../Logos/ICI-Banner.gif" width="243" height="56"></td> <td width="527" align="left" valign="middle" nowrap> <blockquote> <p><font color="#0099CC" size="6" face="Arial, Helvetica, sans-serif"><strong>Rare and Collectable <br> CD's, DVD's and Vinyl's</strong></font></p> </blockquote></td> <td width="11"> </td> </tr> <tr> <td height="3" colspan="2" valign="top" bgcolor="#006699"></td> <td> </td> </tr> <tr> <td height="18" colspan="2" valign="top"> <div align="center"><em><font color="#CCCCCC" size="5" face="Arial, Helvetica, sans-serif"><strong>. . . . make us an offer we can't refuse</strong></font></em></div></td> <td> </td> </tr> </table> <!-- InstanceBeginEditable name="Body" --> <table width="75%" border="0" align="center"> <tr> <td colspan="7"> <? if(!isset($_REQUEST['logmeout'])){ echo "<center><center><font face=\"Arial\" size=\"3\" color=red><strong>Are you sure you want to logout?<br /></strong></font>"; echo "<center><font face=\"Arial\" size=\"3\" ><a href=logout.php?logmeout>Yes</a> | <a href=javascript:history.back()>No</a></font>"; } else { session_destroy(); if(!session_is_registered('first_name')){ echo "<center><font face=\"Arial\" size=\"2\" color=red><strong>You are now logged out!</strong></font></center><br /></font>"; echo "<center><font face=\"Arial\" size=\"2\" color=#999999>You may login again.</center><br /></font>"; include 'login_form.html'; } } ?> </td> </tr> </table><!-- InstanceEndEditable --> <p> </p> </body> <!-- InstanceEnd --></html> |
|
#2
|
||||
|
||||
|
you need to set the page caching to 0... i.e. so that the page expires ones it has been loaded, and you cannot therefore go back to it.
|
|
#3
|
|||
|
|||
|
Thnks for your input.
I went had a look at some of the help topics on this. It is too diffucult to follow. All I need to tell it to expire once the user logs out so that page is not remembered. Is the a sample perhaps you could suggest . I don't even know what the coplete code supplosed to look like. |
|
#4
|
||||
|
||||
|
I don't know any PHP but it'll be the same as ASP.. you need to add a page expire header. Simply google, "expire header php" (without quotes) - that'll get you going in the right direction
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Session destroy after logout.php > help ?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|