| | |
How to disable brouser back.
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I want help.
what i do:I creat three pages 1. login.php, 2. welcome.php, 3.change password.php.
when we login(right Id & P/W) welcome.php will open,On that page i have put two option
i. Logout, ii.change password.,on clicking on Logout we will logout to enter again we have to enter password.As session is distroyed.
Problem: On welcome.php page when I logout then sesstion is dertroyed so we can not go back. welcome page when I click on back button(on brosure) it come on login page and on click on forward botton it come on welcome page.But i want ones it come on login page without without entering Id & password it should not come on welcome page as in logout condition.
what i do:I creat three pages 1. login.php, 2. welcome.php, 3.change password.php.
when we login(right Id & P/W) welcome.php will open,On that page i have put two option
i. Logout, ii.change password.,on clicking on Logout we will logout to enter again we have to enter password.As session is distroyed.
Problem: On welcome.php page when I logout then sesstion is dertroyed so we can not go back. welcome page when I click on back button(on brosure) it come on login page and on click on forward botton it come on welcome page.But i want ones it come on login page without without entering Id & password it should not come on welcome page as in logout condition.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Solved Threads: 0
Hi Ajay Babu
According to me, you should just use session with proper understanding, I think your code write properly. Just make sure the use of session...
Thanks
Nishit Soni
nishit_0627@yahoo.co.in
According to me, you should just use session with proper understanding, I think your code write properly. Just make sure the use of session...
Thanks
Nishit Soni
nishit_0627@yahoo.co.in
yes kkeith29,what you understand that is right.and I have got the solution for that there is javascript which slove my problem that scripte is.
but still i m looking for batter solution
now I want something like yahoomail,on which after login ones if we come on login page(without doing logout) then we have to login again.
PHP Syntax (Toggle Plain Text)
<span class="ad_notxt"><code class="inlinecode"> <Script> window.history.forward(1); </Script> </code></span>
but still i m looking for batter solution
now I want something like yahoomail,on which after login ones if we come on login page(without doing logout) then we have to login again.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
Soniji thanks for suggestion.
I read basic of session and I m using that,as I do logout session get distroyed.but I don't know how to distroy session when user come on privious page(i.t. loginpage) so if u have some idea about that then plz help me.
I read basic of session and I m using that,as I do logout session get distroyed.but I don't know how to distroy session when user come on privious page(i.t. loginpage) so if u have some idea about that then plz help me.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
try this.
Login page -
Login page -
PHP Syntax (Toggle Plain Text)
<?php if (isset($_SESSION['username']) && isset($_SESSION['password'])) { session_destroy(); } else { //Put login script here } ?>
thanks kkeith
I try this code but still problem is not slove,Do u have any other idea then plz suggest me.plz Tell that how can we handal event by windows object in php.
I try this code but still problem is not slove,Do u have any other idea then plz suggest me.plz Tell that how can we handal event by windows object in php.
•
•
•
•
try this.
Login page -
PHP Syntax (Toggle Plain Text)
<?php if (isset($_SESSION['username']) && isset($_SESSION['password'])) { session_destroy(); } else { //Put login script here } ?>
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
![]() |
Similar Threads
- How to disable Back button of IE when executing welcome.aspx page? (ASP.NET)
- SMART Command (Motherboards, CPUs and RAM)
- How to set landscape orientation? (JavaScript / DHTML / AJAX)
- does <img tag has disable property (HTML and CSS)
Other Threads in the PHP Forum
- Previous Thread: how can i redirect like asp
- Next Thread: Getting mysql "UNaffected" rows
| Thread Tools | Search this Thread |
.htaccess alexa apache api array beginner beneath binary broadband broken cakephp checkbox class cms code convert cron curl database date display dynamic echo email emptydisplayvalue encode error fcc file files folder form forms function functions google howtowriteathesis href htaccess html image images include insert ip javascript joomla key keywords limit link login mail mail() memberships menu mlm multiple multipletables mysql mysql_real_escape_string network oop open passwords paypal pdf php provider query radio random redirect remote rss script search securephp server sessions smtp source space sql strip_tags syntax system table template tutorial update upload url user validator variable video voteup web youtube






