ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 19th, 2005, 10:25 PM
fairuz fairuz is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 91 fairuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 3 h 42 m 47 sec
Reputation Power: 5
Lightbulb Dont Know

my problem is when the user logout they can get access the pages by click the icon back at the explorer...
how i can avoid it?? anyone know what method i should do...
when i use session i'll use session.abandon.. n what should i do when i not use session..

Reply With Quote
  #2  
Old May 20th, 2005, 08:13 AM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 38
you have to use some sort of cookie or session. I don't know any other way.
__________________
ShepherdWeb :: Charging Rhino Wizard

I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor.
{Henry David Thoreau}

§ shepherdweb.com
§ fariswheel productions
§ reagan administration

Reply With Quote
  #3  
Old May 20th, 2005, 08:52 AM
arunks's Avatar
arunks arunks is offline
creepy-crawly explorer
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: India
Posts: 132 arunks User rank is Private First Class (20 - 50 Reputation Level)arunks User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 17 h 53 m 15 sec
Reputation Power: 5
Red face

on click of the logout button, redirect to an another file namely "logout.asp",

where u code the following..

<%
'null all session variables
session("username") = ""
'then redirect to the page that u want or close..
response.redirect("login.asp")
%>

Reply With Quote
  #4  
Old May 20th, 2005, 09:23 AM
snipered's Avatar
snipered snipered is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2005
Location: Birmingham, England
Posts: 909 snipered User rank is Sergeant (500 - 2000 Reputation Level)snipered User rank is Sergeant (500 - 2000 Reputation Level)snipered User rank is Sergeant (500 - 2000 Reputation Level)snipered User rank is Sergeant (500 - 2000 Reputation Level)snipered User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 20 h 52 m 11 sec
Reputation Power: 13
You can use that, however if like me it is not working for you then there is this code.

It prevents the user going back via using the back button. It however has a limitation that it doesn't support all browswers but does support the popular ones.

Place the code in the head.

Code:
 <script language="javascript"> 
window.history.forward(1);
</script>


Like this:

Code:
 <html><head> 
<script language="javascript">
window.history.forward(1);
</script>
<title>login</title></head>
<%
Response.Expires = -1
Response.CacheControl = "Private"
%>

Reply With Quote
  #5  
Old May 20th, 2005, 09:36 AM
splinters's Avatar
splinters splinters is offline
Bug Catching Moderator
ASP Free Expert (3500 - 3999 posts)
 
Join Date: Sep 2004
Location: Australia
Posts: 3,572 splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)splinters User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 7190 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Day 19 h 6 m 43 sec
Reputation Power: 112
Quote:
Originally Posted by snipered
You can use that, however if like me it is not working for you then there is this code.

It prevents the user going back via using the back button. It however has a limitation that it doesn't support all browswers but does support the popular ones.

Place the code in the head.

Code:
 <script language="javascript"> 
window.history.forward(1);
</script>


Like this:

Code:
 <html><head> 
<script language="javascript">
window.history.forward(1);
</script>
<title>login</title></head>
<%
Response.Expires = -1
Response.CacheControl = "Private"
%>
The problem with this method is that it prevents the use of the Back button even when the user is legitimately logged in.
__________________
Have I made your day? If so, please show your appreciation either by sending money or the cheaper, preferred option of clicking on the scales icon at the top right of this posting. My reputation needs all the help it can get.

Reply With Quote
  #6  
Old May 20th, 2005, 01:05 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 38
snipered - also, if that method is not working for you, you are probably not handling the session correctly. This means that unauthorized users could gain access to your login.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Dont Know


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 12 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek