Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 18-10-2004, 11:43 PM
New kid on the block
 
Join Date: Oct 2004
Location: shah alam
Posts: 3
Rep Power: 0
wackyflik is on a distinguished road
Unhappy logout in ASP

currently i am working on small system using ASP+JScript+MS Access. i just made one link for user to log out. if user click it, the session will be terminated (Session.Abandon()) and redirect to login.asp.but my prob is, user can simply hit BACK button on IE to get back to the previous pages where he/she went even he/she has logged out. the session start after user successfully log in to the system.means that at login.asp i dont put any session on that page.after the user successfully log in then the session start.

how can i prevent the user from getting back to the previous pages after he/she has log out???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 19-10-2004, 01:02 AM
kpyew's Avatar
Senior Webmaster
 
Join Date: Jul 2001
Location: KL, Malaysia
Posts: 277
Rep Power: 92
kpyew is on a distinguished road
Send a message via ICQ to kpyew
At the top of your ASP page put these:

PHP Code:
Response.ExpiresAbsolute #1990-01-01# 
Response.AddHeader "pragma""no-cache" 
Response.AddHeader "cache-control""private, no-cache, must-revalidate" 
__________________
webmaster @ http://kongtechnology.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 21-10-2004, 08:37 AM
New kid on the block
 
Join Date: Oct 2004
Location: shah alam
Posts: 3
Rep Power: 0
wackyflik is on a distinguished road
do i have to put that script at every pages or only protected pages??? login.asp need that script or not?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
log in / logout nuha Website Programming 2 02-05-2002 11:35 AM



All times are GMT +8. The time now is 02:08 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59