Home | Advertising Info1 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Friday, April 26, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Advanced
 PowerASP Code Help Area : Classic ASP - Advanced
Subject Info: How to check if cookies are enabled A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
jas05220
Newbie
Newbie
Avatar

Joined: April/18/2006
Location: United States
Online Status: Offline
Info: 2
Added: 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 info by jas05220 Visit jas05220's Homepage
 
jas05220
Newbie
Newbie
Avatar

Joined: April/18/2006
Location: United States
Online Status: Offline
Info: 2
Added: 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 info by jas05220 Visit jas05220's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   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.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com