.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET 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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 7th, 2001, 08:24 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Cookie Validation

<i><b>Originally posted by : Mark Smith (ca8msm@isis.sund.ac.uk)</b></i><br />I have a page in which users log into my website. If the login is successful, then a cookie named loginok is sent to them. I need all the other pages on the website to check for this cookie's existence before allowing users access to any pages. I have tried the code below at the top of each of my pages but have had no success. I basically check to see if loginok is smaller or greater than "" but this doesnt seem to work. Is there a way of just checking to see if the cookie exists? Can someone please help? <br /><br /><% <br />If Request.Cookies("loginok")<>"" Then <br />Do Nothing <br />else <br />Response.Redirect("accessdenied.html") <br />end if <br />%> <br /><br />Thanks <br />Mark

Reply With Quote
  #2  
Old April 10th, 2001, 07:58 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : </b></i><br /><br /><br /><br />------------<br />Mark Smith at 4/7/2001 6:24:46 PM<br /><br />I have a page in which users log into my website. If the login is successful, then a cookie named loginok is sent to them. I need all the other pages on the website to check for this cookie's existence before allowing users access to any pages. I have tried the code below at the top of each of my pages but have had no success. I basically check to see if loginok is smaller or greater than "" but this doesnt seem to work. Is there a way of just checking to see if the cookie exists? Can someone please help? <br /><br /><% <br />If Request.Cookies("loginok")<>"" Then <br />Do Nothing <br />else <br />Response.Redirect("accessdenied.html") <br />end if <br />%> <br /><br />Thanks <br />Mark

Reply With Quote
  #3  
Old April 10th, 2001, 08:04 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : </b></i><br /><br /><br /><br />------------<br /> at 4/10/2001 5:58:11 AM<br /><br /><br /><br /><br />------------<br />Mark Smith at 4/7/2001 6:24:46 PM<br /><br />I have a page in which users log into my website. If the login is successful, then a cookie named loginok is sent to them. I need all the other pages on the website to check for this cookie's existence before allowing users access to any pages. I have tried the code below at the top of each of my pages but have had no success. I basically check to see if loginok is smaller or greater than "" but this doesnt seem to work. Is there a way of just checking to see if the cookie exists? Can someone please help? <br /><br /><% <br />If Request.Cookies("loginok")<>"" Then <br />Do Nothing <br />else <br />Response.Redirect("accessdenied.html") <br />end if <br />%> <br /><br />Thanks <br />Mark

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Cookie Validation


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway