Current location: Hot Scripts Forums » Programming Languages » PHP » Back button problem


Back button problem

Reply
  #1 (permalink)  
Old 05-06-04, 02:28 PM
selvam selvam is offline
New Member
 
Join Date: May 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Back button problem

hi,
i have a login page which on sucessfull login goes to a main page and then a logout page.The problem is after logout if the IE back button is clicked it goes to the main page.How to avoid this.
Reply With Quote
  #2 (permalink)  
Old 05-07-04, 01:58 AM
the_mole001's Avatar
the_mole001 the_mole001 is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Australia
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Hey,

Perhaps you should make a link on the page for the user to go back instead of the homepage? Perhaps something like:

<a href="javascript:history.back()">

-Peter
__________________
Current Project: GGAC Website
Project Link: http://peter.5gigs.com/

Last edited by the_mole001; 05-07-04 at 02:00 AM.
Reply With Quote
  #3 (permalink)  
Old 05-07-04, 05:22 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Quote:
Originally Posted by selvam
hi,
i have a login page which on sucessfull login goes to a main page and then a logout page.The problem is after logout if the IE back button is clicked it goes to the main page.How to avoid this.
so you are saying that after you logout if you click Back it will log you in again ?
in your logout page you have to destory everything related to membership account information in SESSION and COOKIES ..
also it depend on how your website work, if you validate the data everytime and set them to Session/cookies again you have to watch this side ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #4 (permalink)  
Old 05-07-04, 09:41 AM
tylerc tylerc is offline
Newbie Coder
 
Join Date: May 2004
Location: Canada
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
this is the code if you want to go back 1 page:


javascript:history.go(-1)
__________________
-Tyler
RuneGuide Owner/Manager

Runescape Stats:
http://www.rsbandb.com/sig/sigs/n/nexon89.png
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable browser's back button after logout shaky ASP 7 08-18-06 07:37 AM
Problem with date in combobox. Periodically lose valu Danie Visual Basic 1 03-04-04 02:41 PM
Problem with SWITCH function in Radio Button group maverickblair PHP 1 02-27-04 10:49 AM
Tab Problem!!! menwa Everything Java 0 12-06-03 05:53 AM
radio button selection TheLaughingBandit ASP 3 08-31-03 06:22 PM


All times are GMT -5. The time now is 10:32 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.