Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2004, 07:06 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with cookies :(

Hello Guyz...

I`m using the following code:
--------------------------
<%
Dim oRSbn, varPeopleIDNumber
varPeopleIDNumber = Request.Cookies("PeopleIDNumber")
Set oRSbn=server.createobject("ADODB.recordset")

sqltext = " SELECT * from users WHERE Unique_Id=" & varPeopleIDNumber & ";"
oRSbn.open sqltext, "DSN=news"
reponse.write oRSbn("nickname")
oRSbn.Close
%>
--------------------------
From the error I get I see that the variable "varPeopleIDNumber" is empty.

1. I`ve checked the cookie and it`s fine written in the correct folder
2. I`ve used this code in another application also and it works fine. So, what`s the problem? Should I make some settings in order to make it work?
 
Old December 13th, 2004, 03:23 AM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Only thing i can think is of that it may be because of the privacy setting of your browser.
try setting it to "Low".
Go to Tools->Internet Options->Privacy

Mayank
 
Old December 13th, 2004, 11:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Do a

response.write Request.Cookies("PeopleIDNumber")

to see if the value exists in the cookie variable.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with cookies khb3283 ASP.NET 2.0 Basics 1 October 1st, 2008 11:11 AM
cookies problem kanoorani Servlets 0 December 22nd, 2006 10:54 AM
Cookies Problem dparsons ASP.NET 1.0 and 1.1 Professional 0 November 28th, 2006 01:47 PM
Problem with using cookies JSB Beginning PHP 0 November 25th, 2005 11:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.