Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 15th, 2007, 12:20 AM
Authorized User
 
Join Date: Feb 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default logout in php4.2

Hello everybody...!
I m using php4.2 and my authentication(login) success in my project. I do my work properly but as I click on logout button, there exists my desired new login(authentication) page. But as I click back button situated on the left top most corner on the browser, it again shows my earlier login page. How can I overcome by this problem. I had just used header("Location: login.php"); for button logout.

Please reply me....

Thank you.


 
Old June 6th, 2007, 05:38 AM
Authorized User
 
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to pritz Send a message via Yahoo to pritz
Default

hi,

in logout function destroy your session values.
session_start();
unset($_SESSION);
session_destroy();

regards

 
Old November 26th, 2007, 05:23 AM
Authorized User
 
Join Date: Feb 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by pritz
 hi,

in logout function destroy your session values.
session_start();
unset($_SESSION);
session_destroy();

regards

Well thanx....I m very late to rely so sorry as well..
bye

 
Old November 26th, 2007, 05:24 AM
Authorized User
 
Join Date: Feb 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by pritz
 hi,

in logout function destroy your session values.
session_start();
unset($_SESSION);
session_destroy();

regards

Well thanx ..I m late to reply so sorry as well
bye






Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning PHP4 Nicholsen Beginning PHP 3 October 20th, 2006 07:59 PM
php4 or php5 dreadzz BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 July 15th, 2005 04:58 AM
logout TIME and logout DATE crmpicco Classic ASP Databases 2 January 20th, 2005 12:01 AM
logout TIME and logout DATE crmpicco Classic ASP Basics 0 January 19th, 2005 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.