how to integrate link with log out script? 
Author Message
 how to integrate link with log out script?

the script below is to log out but how do i implant this script so that when
i click on a link, it will not only enter another page but also log out?

 <?PHP
  $logout = true;
  $cfgProgDir = 'phpSecurePages/';
  include($cfgProgDir . "secure.php");
 ?>



Sat, 25 Jun 2005 23:49:24 GMT  
 how to integrate link with log out script?

Quote:

> the script below is to log out but how do i implant this script so that
> when i click on a link, it will not only enter another page but also log
> out?

>  <?PHP
>   $logout = true;
>   $cfgProgDir = 'phpSecurePages/';
>   include($cfgProgDir . "secure.php");
>  ?>

<a
href="http://www.myserver.co.uk/logout.php?goto=http://www.howardstredwick.com"
alt="logout and go someplace else">logout</a>

and in logout.php

<?PHP
  $goto = $_GET['goto'];
  $logout = true;
  $cfgProgDir = 'phpSecurePages/';
  include($cfgProgDir . "secure.php");  //hope this doesn't include any
output to client..
  header('Location: '.$goto);
?>

--
-----------------------------------------
PHP,ASP,JSP Web Dev
http://www.howardstredwick.com



Sun, 26 Jun 2005 00:47:55 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. error R6003 on NT server (link __WAIT_4.OBJ in link script already)

2. Mathematica Link for LabVIEW Integrates Design Models and Measurements

3. ANNOUNCE: Integrated Web Based Charting from a Linked Database

4. Movement in scripting language communities to integrate XML-RPC

5. Is there any script for integrated such as test-bench, top-level

6. Integrate cplusplus with tcl script?

7. newbie:integrating tcl/tk scripts with C

8. Script Logging Firewall Printer

9. script to add dates to IIS web log files

10. Python CGI output and Apache script log ?

11. Need to log AUTH_USER from Tcl script

12. Logging of Tcl Scripts

 

 
Powered by phpBB® Forum Software