Home | Advertising Info10 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Friday, May 10, 2024  

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Advanced
 PowerASP Code Help Area : Classic ASP - Advanced
Subject Topic: How to check if cookies are enabled Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jas05220
Newbie
Newbie
Avatar

Joined: April/18/2006
Location: United States
Online Status: Offline
Posts: 2
Posted: April/18/2006 at 3:29pm | IP Logged Quote jas05220

I need to check if cookies are enabled when you go to a login page.  I figured out a way to do it but google does not index the page.

first I arrive to the login page and set a session varible.  I then do a redirect to see if the session variable still exists.  If it does not exist show a cookie error page.  If it does exist go back to page you came from.

the only problem is that it does not index with google.  Any Ideas.  Is there a better way to check for cookies before submitting a form?



__________________
Joe
http://www.rsvsolutions.com
Back to Top View jas05220's Profile Search for other posts by jas05220 Visit jas05220's Homepage
 
jas05220
Newbie
Newbie
Avatar

Joined: April/18/2006
Location: United States
Online Status: Offline
Posts: 2
Posted: April/18/2006 at 3:36pm | IP Logged Quote jas05220

Probably should of added the code

Login.asp

'Check cookies
  url = request.servervariables("URL")
  If kep_not_null(request.servervariables("QUERY_STRING")) Then   
    qString = replace(request.servervariables("QUERY_STRING"),"&","$")
    URI=url&"?"&qString
  Else
    URI=url
  End If
 
  session("cookieCheck")="created"
  If session("cookieCheckCompleted")="" Then
    response.redirect("../cookie.asp?page="&URI)
  End If

cookie.asp

  If session("cookieCheck")="created" Then
   session("cookieCheckCompleted")="passed"
   page = replace(request.querystring("page"),"$","&")
   response.redirect(page)
  Else 
    response.write("you must enable cookies to continue")
  End If

 



__________________
Joe
http://www.rsvsolutions.com
Back to Top View jas05220's Profile Search for other posts by jas05220 Visit jas05220's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com