Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 3rd, 2003, 02:16 AM
oavs oavs is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 oavs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Session destroy after logout.php > help ??

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">&nbsp;</td>
</tr>
<tr>
<td height="3" colspan="2" valign="top" bgcolor="#006699"></td>
<td>&nbsp;</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>&nbsp;</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>&nbsp;</p>
</body>
<!-- InstanceEnd --></html>

Reply With Quote
  #2  
Old June 3rd, 2003, 03:07 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old June 3rd, 2003, 03:37 AM
oavs oavs is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 oavs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old June 3rd, 2003, 06:45 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Session destroy after logout.php > help ??


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap