| | |
About Login Page Pbm
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2008
Posts: 47
Reputation:
Solved Threads: 0
Hi
I created one website with login form.In that form after login with username and password i entered into welcome page after that i clicked logout then my page gets logout then i clicked back option in my browser that time it shows well come page i want to avoid this pbm from my website can anyone tell me how to avoid this
thanks in advance
PunithaPary
I created one website with login form.In that form after login with username and password i entered into welcome page after that i clicked logout then my page gets logout then i clicked back option in my browser that time it shows well come page i want to avoid this pbm from my website can anyone tell me how to avoid this
thanks in advance
PunithaPary
use this code in your welcome page:
php Syntax (Toggle Plain Text)
<? session_start(); if(!isset($_SESSION['your_user_session'])) { header("location:login.php"); } ?>
Last edited by Shanti Chepuru; Sep 11th, 2008 at 5:31 am.
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
see this link will help you:
http://www.phpnerds.com/article/using-cookies-in-php/2
Logic is same for cookies or sessions.
http://www.phpnerds.com/article/using-cookies-in-php/2
Logic is same for cookies or sessions.
Last edited by Shanti Chepuru; Sep 12th, 2008 at 3:08 am.
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
![]() |
Similar Threads
- Back button in browser (ASP.NET)
Other Threads in the PHP Forum
- Previous Thread: Fsockopen Problems
- Next Thread: Bullet creation in xml using PHP
| Thread Tools | Search this Thread |
apache api array beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum freelancing function functions google header headmethod howtowriteathesis href htaccess html iframe image include incode insert ip javascript joomla limit link login mail malfunction menu method mlm mod_rewrite multiple mysql neutrality oop pageing paypal pdf php phpmysql play problem query question radio random recursion recursiveloop remote root script search select server sessions sms soap source space sql support! syntax system table template tutorial update upload url validator variable video web youtube






