I Can't Query A Cookie From One Site To Another - Right?

Just to confirm, if I create a cookie via one of my web sites, I can't call and query that cookie from a different site can I?

I want to keep checking the state between a http site and a https site that both need to work together and at the moment I have to post the relevant session id between the sites for my background DB to keep track, but I just had a thought - can I use a generic cookie between the sites?

I would have thought that this wasn't possible between sites with 2 different URLs, but I just wanted to check.

View Replies


ADVERTISEMENT

Cookie And Immediate Query

I'm trying to retrieve a cookie variable and insert the data into a table. However, it is not retrieving it in time (the cookies do exist) and the SQL statement is failing due to the empty variable. Here's the code:

'''''''''''''''''''''''''''''''''''''''''''''
aid = Request.cookies("aid")
username = Request.cookies("username")

strSQL = "insert into tblPictures" _
& " (Author_ID, Author_Username)" _
& " values(" & aid & ", '" & username & "')"
set rsCommon = adoCon.Execute(strSQL)
'''''''''''''''''''''''''''''''''''''''''''''

View Replies View Related

ASP Site Query

I want to implement openID but the libraries available for openID are asp.net .

My question is whether its possible to run a site that contains ASP and ASP.NET pages and also what limitations this may have.

Also would it be quite easy to just rewrite the asp user login/registration aspect from ASP to ASP.NET ? since the site is already in classic asp ??

View Replies View Related

Response.cookie In Session_onstart Event And IE 6.0 Cookie Acceptance

When I set a cookie in global.asa in the sub session_onstart, even if
I have "privacy" in IE 6.X set to "block all cookies" the cookie is
still set, and I can get it on other pages.

I can't find an article that addresses this as a specific issue. Why
does the browser get the cookie when it is set in the session_onstart
event even when I have "block all cookies" set?

View Replies View Related

Session Cookie Vs. Regular Cookie

I want to know what's the differences between session cookie and regular cookie.

In ASP, when we create cookie, we do the following to identify an user:

Response.Cookies("name") = value

Is this regular cookie? How about session cookie? and when to use which?

View Replies View Related

Building An ASP Site Using Dreamweaver - Can Html Site Be On ASP Server?

I am to build a site onto an ASP server. Anyone here used Dreamweaver and is it just a simple matter of opening up a new ASP page in Dreamweaver and build the site like you would normally do with a HTML page and it will handle the ASP coding accordingly and you can just simply upload it onto an ASP server and it will work?

The site I am to build is basically just a standard html website, but my friend wants me to build it for an ASP server so he has asked me to make sure it is an asp site so I am presuming with the extension .asp

If I build it as a html site to begin with, will converting it to asp be hard. Could I just export my pages into asp or is there more to it?

Can a Html website be loaded and working on an asp server or host?

Is it possible to have a site mixed both html and asp, eg. the home page is html and when you click on shopping cart on the home page it goes to a hopping cart page thats .asp or do they all have to have the same extension.

View Replies View Related

Posting Form Variables From Site A To Site B

I have to pass form data from my site to another organizations site using POST method... how exactly do I do that? Im familiar with how to do it within a single site/domain, and cant use querystring... I dont know where to begin.

View Replies View Related

Site Search Powered By Google Site Map?

Whenever I do a site that is mostly static but with some semi-dynamic
sections, I've struggled to find a good site search solution without
paying for a hosted search service.

I like the FSO-based search engines, but they fail to pick up on some of
the dynamic part.

I was just creating a Google sitemap and it made me wonder: has anyone
created or seen a script that uses the XML Google sitemap to power a
search engine for your own site?

Seems like if you were keeping it updated for Google, why not use it for
your own site?

View Replies View Related

Need To Convert This Sql Query For Access To Identical Sql Query For Sql 2005..

My code retrieves a username and a password from a form. Then this information is compared to some usernames and passwords that are stored in a database. The important thing here is that the comparison must be case sensitive meaning that "passWord" is not the same thing as "password"

I have this code, working fine in access 2003

SQL = "SELECT * FROM users WHERE StrComp(username_column,'" & entered_username_in_form & "',0) = 0 AND StrComp(password_column,'" & entered_password_in_form & "',0) = 0"

but get the following error when I run it against my sql 2005 database.

[Microsoft][SQL Native Client][SQL Server]'StrComp' is not a recognized built-in function name.

I don't know the corresponding t-sql for the query.

View Replies View Related

Query A DB - Pass The Query To Next Page

I am running a querry on an access database and have set the number of records/page displayed at 20. if there are more than 20 records returned, then 1st page will show the first 20, the next page will show next 20 and so on....

The trouble:

the count of total records displayed is correct and the first page is displayed correctly. But when i click on *Next* to go to the next page, all the records of the database get displayed (not the 2nd page of records from the query).

View Replies View Related

Query Access With Multiple Query

I am using ASP/MS ACCESS to see how I can query the same database, via 2 formfields.

{name: - search}Textfield 1: - Search by Category
AND/OR By
{name: - searchT}Textfield 2: - Location

Currently,

strSearchwords = Trim(Request.QueryString("search")); where "search" is the name of Textfield1

Which is fine, but how can I set it so that on Submit, the string from search, and searchT are somehow joined together into one string?

View Replies View Related

ASP LIKE Query Using Parameterized Query

In Access you use "*" + [passed variable] + "*", + can be replaced with &
Calling a parameterized query in Access requires % be used in place of *,
however, all that I have read show dynamic SQL passed to Access:

WHERE [some column] LIKE '" & ASPvar & "' % ORDER BY ...

However, my call is similar to:

conn.qMyLookup strVar, rs

If I modify the query in Access to:

"%" & [passed variable] & "%"

I get all records. If I only put it at the end, as suggested, I only get
matches at the end, not throughout the column. Code:

View Replies View Related

How To Set Cookie To Nothing?

The problem is that the code for "change_school.asp" takes the user right to "portal.asp". I checked the code of "change_school.asp" and it does indeed set a cookie value for "school", but for some reason "default.asp" is still finding the old cookie stored and then redirecting...any ideas guys?

'code for change_school.asp...clears the cookie "school" and redirects to page (default.asp) where user can select a new school
<% Response.Cookies("school")= ""
Response.Redirect "default.asp" %>

'code for default.asp which allows user to select a new school, and if the cookie "school" has some value then they are redirected.
<%
If request.cookies("school") <> "" then
Response.Redirect "portal.asp"
end if
%>

View Replies View Related

Cookie And SQL?

On this website i am building it has password protection on certain pages. So i have a "login" portion on the right side of the page, that is shown on every page. When someone logs in is it possible to change that little section to just say Welcome so and so? Instead of having the username and password form with submit button?? Or is this something that requires some java to hide it?

Part II
When someone logs in i want them to recieve a cookie, in that cookie i want it to contain the person's name (wich i want the to be put next to the "welcome back on part I), email address, and up to four other numerical values. (some people will have greater access to sections of the site depending on who they are)

Is is possible to grab this information from the SQL database and put in the cookie? If so can anyone please show me, point me in right direction, ect?

View Replies View Related

Cookie Value

I'm using FrontPage Database results wizards to retrieve data from Access. I have a cookie containing a number I'd like to insert in a custom query. Whenever the page opens, I want the query to run using the value in the cookie. I haven't been able to figure out how to transfer the cookie value into something the FP webbot will accept in the query.

View Replies View Related

Cookie

What i am trying to do is this: I want to make a cookie. If someone comes back to a page (say after an hour after they left)i want them to get a specific popup. If someone comes back after than hour I want them to get a different popup, telling them something different.

View Replies View Related

Cookie Detection

I'm going to go down this route of Cookie detection

<%

If Request.Querystring("Check") = "" Then

Session("cookietest") = "True"

Response.Redirect("cookietest.asp?Check=True")

Else

If Session("cookietest") Then

<!-- Execute code if enabled -->

Else

<!-- Execute code if disabled -->

End If

End If

%>

I’m a little worried, do you know how spiders work with regards to this sort of thing? My site gets some traffic due to it being spidered by the likes of google and I don’t want to loose that flow.

If I use this at the entry point of my site to redirect browsers with cookies turned off to a page telling them to turn them on will that stop the spiders?

View Replies View Related

Cookie Availability

If my user turns cookies off, both permanent and temporary cookies can't be used or only permanent cookies can't be saved on the user's machine?

View Replies View Related

Cookie Not Being Deleted.. How Do I?

I have a cookie with a path of "/"

im trieng to delete it before the expired time has comed anyway i am trieng to delete it by setting the cookie to ""


like so: Response.Cookies("name") = "";

but its not working but...i found out that if i dont set the path it is being deleted but i have to set the path because from some reason without it i have issues where the cookie is not found in some pages.

View Replies View Related

A Cookie Disappears, But Not All Of Them

I have a problem with a Cookie in an ASP page. Without any apparent reason, one of the Cookies disappears, but the others are ok.

I'm at Page1, a link goes to Page2. Page2 redirects to Page3 and Page3 redirects to Page1. When I'm back to Page1, sometime, one of the cookies don't exist anymore... But the others are there! The disappeared Cookie isn't always the same, in the 18 Cookies that I have.

The environment is composed of 4 clustered servers. Page1 is SSL, but not Page2 and Page3.

I don't have more than 4KB (1.86KB to be more precise) of data and I don't have more that 20 Cookies on the same domain.

I added the following code:

View Replies View Related

Sessions Without Cookie

Do you want manage ASP Sessions variables without Session Object and without Cookie?

View Replies View Related

Retrieving Cookie Value

I want to retrieve the value of a cookie to make a form a little more user friendly (our intranet is configured to set a cookie for User First Name, Last Name and Email when they log in)

Unfortunately I can't figure out how to retrieve the value of the cookie. I've been trying:

<%
Response.write Request.Cookies(UserLName)
%>

But it gives me an error - I used Checky to make sure the cookies are there and they do exist:

Name:mascot
Value: UserLName=Tarby

Can someone give me some advice?

View Replies View Related

Encoding Cookie.

When I run the ASP page for the first time, I find out, that the Cookie file name contains some several special characters such as %5F, which are encoded with a URLEncode function. So, I have the following string (after convert): ....

View Replies View Related

How To Remove Cookie?

How can I remove a cookie from the client in ASP? I'm not talking about setting the value to a blank string and I've tried this:

[vbs]
Response.Cookies("mycookie").Expires = Now()
[/vbs]
and
[vbs]
Response.Cookies("mycookie").Expires = Date() - 100
[/vbs]

Neither of which work.

Is there any way to completley remove the cookie?

View Replies View Related

Cookie Array

Is there a way to store an array of information in a cookie? ie. a user can have a "x" long list of a variable stored in a cookie, so when they return to the site this information can be retrieved.

View Replies View Related

Get Cookie Path

Is it possible to get the physical path of a cookie? (C:Document and SettingsmyLoginCookies)

Because I need "myLogin" (the Windows Login), and I can't get with request.ServerVariables("logon_user") or ("author_user") or whatever...

View Replies View Related

Write Db Value To A Cookie?

I select 'name' from the customer table.

Is it possible to write it into a cookie?

<%
Response.Cookies("customer")("firstname") = '" & objRecordset(NAME) & "'
%>

when I try to write the above using

<%
Response.Write (Request.Cookies("customer")("firstname"))
%>

i get the following ....

View Replies View Related

Cookie Testing

I need to revisit cookie testing. On the home page and every product page I
write a cookie. I do this because some users enter by direct links to
product pages.

<%
Response.Cookies("cookietest") = ("49")
Response.Cookies("cookietest").Expires = Date + 2
%>

On the cart page I test for the cookie...

<%
If Request.Cookies("cookietest") <"49" Then
Response.Redirect("err.asp?e=1")
End If
%>

I have a user that insists he has cookies enabled, yet he keeps getting
redirected to my error page which suggests he does not have cookies enabled.
What could cause this? Is the above too simple for all circumstances?

Is there more extensive code that I could setup on a hidden page where I can
send users to get read out on how they actually have their browsers setup?
i.e. Run a test on their browser and the results are emailed to me.

View Replies View Related

Creating A New Cookie

I have an asp page where i created cookies-for admin and for user. The aspx page reads these cookies. Everything seems to work fine but now i have to create a new cookie if cookie has expired or if cookie is null. Also, i am having problems with the expire because if the username belongs to the admin for example and then i want to change
the username that belongs to a normal user the cookie recognises the first (admin) cookie. How do i solve this? .....

View Replies View Related

Cookie Poisoning

I have created a page where i got sth like this:

if (request.cookies("example") <> ""
response.redirect("login.asp")
response.end
end if

(I will try to explain as easy i can), so in the login.asp using a .mdb i get the username and check with the password, and putting the username in the cookie in this case called example, but using some cookie poisoning i can be anybody logged in, even sb out of the table of users, i didn't use the session object, i wanted to use a cookie because i got curiosity and i didn't understand what is the difference, and actually i don't understand so much...anyways i got 2 questions, how i do sth for protect the cookie for cookie poisoning and what is the difference between the session and the cookie (from the little what i know is that the session is a predefined cookie that has some encrypting stuff and that so on and got some properties, methods right? and the cookie is just a information holder without any extra stuff as the session object has, am i right?)

View Replies View Related

Encrpyt A Cookie

I have created code to create a cookie about a user when their login and when they tick a remember me box.

The problem is though the the data in the cookie is stored in plain text. Which means I can use firefox and it webdeveloper tool to look at the cookie and change the values.

My question is how do you encrpyt a cookie so it doesnt store the info in plain text?

View Replies View Related

Cookie Abandon

well in session we got session.abandon and all the bad sessions gone... i need to delete cookies from users side, there is option for this in asp dot net but in classic asp how we can do it?

Response.Cookies("firstname").Expires=?

View Replies View Related

Cookie Not Being Prompted

I use the following simple code in an asp to test how cookies work ...

<%@ Language=VBScript %>
<%
Response.Cookies("CookieTest")="Lovely Cookie !"
Response.Cookies("CookieTest").Expires=DateAdd("n",5,Now())
%>
<HTML><BODY>The cookie has arrived !</BODY></HTML>

I've set my IE6.0 to prompt me for all cookies, which it does for all web pages I visit,
but not for the above asp page which is hosted from IIS5.1 on my PC. I can see the cookie being created in my Cookies folder, but would like to be prompted first!

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved