Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > cookie testing

Reply
Thread Tools

cookie testing

 
 
shank
Guest
Posts: n/a
 
      08-30-2006
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.

thanks!


 
Reply With Quote
 
 
 
 
Jay
Guest
Posts: n/a
 
      08-30-2006
Whenever i use cookies, i ues this....


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


Try that, it might help i hope


James Jones




"shank" <> wrote in message
news:...
>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.
>
> thanks!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is different between Request.Cookie and Response.Cookie ad ASP .Net 2 01-27-2006 12:54 PM
Cookie Question (IP as domain and cookie file location) =?Utf-8?B?UGF1bA==?= ASP .Net 1 01-10-2006 08:37 PM
Any downsides to cookie assignment inside custom class using HttpContext.Current? ASP.NET 2.0 cookie fix? ASP .Net 2 08-17-2005 06:43 AM
Cookie and Session Cookie Questions. Shapper ASP .Net 1 04-27-2005 11:20 AM
Session cookie? Browser instance cookie? Ben ASP .Net 3 06-03-2004 03:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57