Reply
Posted Feb 3, 2013
6:16:06 PM
Cookies blocked on certain sites when on 3g?

I asked this on another forum and recieved no responses. Maybe this is a better place?

 

When I"m on the traditional archery site tradgang.com, and I'm on the AT&T wireless network, I can't post to the forums, view profiles, and other things that require verification that I'm a registered member. If on WIFI, everything works fine.

 

I'm using a Samsung Gallaxy S2, though members who have iPhones are experiencing the same problem. What gives?

 

Thank you.

I asked this on another forum and recieved no responses. Maybe this is a better place?

 

When I"m on the traditional archery site tradgang.com, and I'm on the AT&T wireless network, I can't post to the forums, view profiles, and other things that require verification that I'm a registered member. If on WIFI, everything works fine.

 

I'm using a Samsung Gallaxy S2, though members who have iPhones are experiencing the same problem. What gives?

 

Thank you.

Cookies blocked on certain sites when on 3g?

751 views
6 replies
(0) Me too
(0) Me too
Post reply
Replies
(6)
0
(0)
  • Rate this reply
View profile
Feb 3, 2013 6:50:25 PM
0
(0)
Tutor

If someone points out that I'm in the wrong forum for this, it's not my fault! I was moved here, even though I noted that iPhone users are having the same problem. At least someone was reading my post.:smileyfrustrated:

If someone points out that I'm in the wrong forum for this, it's not my fault! I was moved here, even though I noted that iPhone users are having the same problem. At least someone was reading my post.:smileyfrustrated:

Re: Cookies blocked on certain sites when on 3g?

2 of 7 (738 Views)
0
(0)
  • Rate this reply
View profile
Feb 4, 2013 10:02:20 AM
0
(0)
ACE - Professor

Have you tried a different browser?  Mobile browsing is far from perfect, and websites not designed for mobile can often have wonky functionality.  Opera and Dolphin are some good alternate browsers.

Have you tried a different browser?  Mobile browsing is far from perfect, and websites not designed for mobile can often have wonky functionality.  Opera and Dolphin are some good alternate browsers.

*The views and opinions expressed on this forum are purely my own. Any product claim, statistic, quote, or other representation about a product or service should be verified with the manufacturer, provider, or party.

Re: Cookies blocked on certain sites when on 3g?

3 of 7 (696 Views)
0
(0)
  • Rate this reply
View profile
Feb 4, 2013 1:13:07 PM
0
(0)
Tutor
It works when I'm connected to WIFI at home. I haven't tried an AT&T hotspot yet.
It works when I'm connected to WIFI at home. I haven't tried an AT&T hotspot yet.

Re: Cookies blocked on certain sites when on 3g?

4 of 7 (686 Views)
0
(0)
  • Rate this reply
View profile
Feb 6, 2013 9:42:43 AM
0
(0)
Tutor
Connected to an AT&T hotspots and everything worked fine. Disabled wifi to connect to hspa +, doesn't work as noted above.
Connected to an AT&T hotspots and everything worked fine. Disabled wifi to connect to hspa +, doesn't work as noted above.

Re: Cookies blocked on certain sites when on 3g?

5 of 7 (640 Views)
0
(0)
  • Rate this reply
View profile
Feb 13, 2013 8:51:55 AM
0
(0)
Contributor

Same problem on an iphone and a samsung galaxy tab 8.9... On an AT&T 3g connection, one of 4 cookies from my website seem to be saving on the device, but if I switch to wifi, it works as expected.  Desktop computers on wifi and wired also work as expected.  Seems to only be a problem on 3g.  Have not tested other carriers yet.  

Same problem on an iphone and a samsung galaxy tab 8.9... On an AT&T 3g connection, one of 4 cookies from my website seem to be saving on the device, but if I switch to wifi, it works as expected.  Desktop computers on wifi and wired also work as expected.  Seems to only be a problem on 3g.  Have not tested other carriers yet.  

Re: Cookies blocked on certain sites when on 3g?

6 of 7 (561 Views)
0
(0)
  • Rate this reply
View profile
Feb 13, 2013 11:45:37 AM
0
(0)
Contributor

I found a solution for my situation, but it requires a change on the website.  I don't expect at&t to solve it. (they could)

 

The following explanation is for webmasters to see what is happening:

 

Apparently at&t strips spaces from the cookies if there are multiple cookies seperated by semi-colons.

 

I recorded the cookies coming back from browsers from a device on wifi and a device on at&t 3g networks.  

Results were the same across multiple browsers and devices. 

 

WIFI

cookie string:  param1=value1; param2=value2; param3=value3; param4=value4

 

AT&T 3G

cookie string:  param1=value1;param2=value2;param3=value3;param4=value4

 

If there is only one cookie for the domain, there will be no noticible difference

if there are multiple cookies for the domain, it depends on if the website is expecting a space between parameters.

 

The problem is that there are platforms out there that handle this for the programmer, so the programmer is not involved in the parsing of the cookies, he/she simply checks for the cookie by name.  

 

This could be corrected for all websites by AT&T not manipulating the cookie string, or each website needs to adjust how they read the cookies.  In our case, we changed how we read cookies.

 

We were using the platform: West-Wind Web Connection 

The solution was in the GETCOOKIE method of classes\wwrequest.prg

 

* Original Line
* lcValue=EXTRACT(" "+lcCookieString + ";",;
                " " + TRIM(lcCookie)+"=",";","",.T.)

 

* New line
lcValue=EXTRACT(lcCookieString + ";", TRIM(lcCookie)+ "=", ";", "", .T.)

 

Credit to David Vaughan for the solution.

I found a solution for my situation, but it requires a change on the website.  I don't expect at&t to solve it. (they could)

 

The following explanation is for webmasters to see what is happening:

 

Apparently at&t strips spaces from the cookies if there are multiple cookies seperated by semi-colons.

 

I recorded the cookies coming back from browsers from a device on wifi and a device on at&t 3g networks.  

Results were the same across multiple browsers and devices. 

 

WIFI

cookie string:  param1=value1; param2=value2; param3=value3; param4=value4

 

AT&T 3G

cookie string:  param1=value1;param2=value2;param3=value3;param4=value4

 

If there is only one cookie for the domain, there will be no noticible difference

if there are multiple cookies for the domain, it depends on if the website is expecting a space between parameters.

 

The problem is that there are platforms out there that handle this for the programmer, so the programmer is not involved in the parsing of the cookies, he/she simply checks for the cookie by name.  

 

This could be corrected for all websites by AT&T not manipulating the cookie string, or each website needs to adjust how they read the cookies.  In our case, we changed how we read cookies.

 

We were using the platform: West-Wind Web Connection 

The solution was in the GETCOOKIE method of classes\wwrequest.prg

 

* Original Line
* lcValue=EXTRACT(" "+lcCookieString + ";",;
                " " + TRIM(lcCookie)+"=",";","",.T.)

 

* New line
lcValue=EXTRACT(lcCookieString + ";", TRIM(lcCookie)+ "=", ";", "", .T.)

 

Credit to David Vaughan for the solution.

Re: Cookies blocked on certain sites when on 3g?

7 of 7 (546 Views)
Share this post
Share this post