Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie Problem

Status
Not open for further replies.

SkiCheif

Technical User
Sep 8, 2004
30
US
I tried posting this problem in the .asp forumn, but maybe it should be here...I have a page [matchsetup.asp] that contains a form that set cookies based on three elements..
a date, a name and a name
One text box and two combo boxes respectively.



I set the cookies on the following page [seventy.asp]
Code:
<% 
Response.Cookies("M")("MatchDate") = Request.Form("txtMatchDate")
Response.Cookies("M")("HomeTeam") = Request.Form("cboHomeTeam") 
Response.Cookies("M")("VisitingTeam") = Request.Form("cboVisitingTeam")
Response.cookies("M").Expires=date+6

%>Visiting Team: 
<%
Response.Write Request.Cookies("M")("VisitingTeam")
%> Home Team: 
<%
Response.Write Request.Cookies("M")("HomeTeam")
%> The Match Date: 
<%
Response.Write Request.Cookies("M")("MatchDate")
  
  
%>

This page set the cookies and reads them just fine.
I can see the values display.

I then fill out the information on this page and hit send, submitting the values to an MS Access Database.

On the following page [seventyfive.asp] I can only see the 'date cookie'

This page will not see the other two cookies. It is as if they were deleted!

I also made a test page and it only displayed the date cookie.

I am not sure how to cross ref a thread, but here is the url:
cookiesworking.jpg


AND
cookiesnotworking.jpg


Thanks for the help.
Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top