• Home
  • About
Blue Orange Green Pink Purple

Samsung/Cricket/LGE mobile browsers and cookie/session problems

Posted in Uncategorized. on Wednesday, March 17th, 2010 by Vincent Maher Tags: code, cricket, LGE, mobile
Mar 17

I don’t often do technical posts but I spent so much time trying to find a solution to this one that I had to put it up for others.

The Problem: Several Samsung and Cricket devices (predominantly in the US) seem to have problems accepting cookies from mobile web sites.

Affected devices: After much research I discovered that this is something specific to the OpenWave browser. The models this includes are Samsung: SGH 350, SCH-R430, SCH-R210; LGE: MT375/1.0, LG290C; Motorola: MOT-V3am and many more.

Cause and effect: The OpenWave browser cannot accept cookies properly from a domain name that does not have a subdomain. It will try set a cookie from http://yourdomain.com as http://.yourdomain.com and obviously this will fail.

Solution: Look for “UP.Browser” in the user-agent string and redirect these users to a domain that has a subdomain and set the cookie there. Here is a PHP code sample:

//Check if the user has the OpenWave browser
$pos = strpos($_SERVER['HTTP_USER_AGENT'],”UP.Browser”);

//If so, make sure the user is not already on the correct domain and then do the redirect
if($_SERVER['HTTP_HOST']!= “m.yourdomain.mobi” && $pos) {
//Add the redirect code here
}

You may not want to redirect in this case, you may want to do something else but the bottom line is that you can’t set a cookie and if you need one you’re going to have to do it this way.

blog comments powered by Disqus

Vincent Maher

  • the short bio
    Vincent Maher is the portfolio manager for social media at Vodacom, South Africa's largest mobile telecommunications company. His flagship product is The Grid, a fast-growing location-based social network and instant messaging platform. Previously he was the strategist at the Mail & Guardian Online and co-founder of Amatomu.com, the South African blog aggregator and analytics system. Before that he was Director of the New Media Lab at the Rhodes University School of Journalism & Media Studies, the managing director of Digital Commerce and a multimedia director at VWV Interactive.

    He has worked in the online media industry since 1996, has presented papers at many international conferences and specializes in profitable innovation in emerging markets.

    View Vincent Maher's profile on LinkedIn

  • Syndication
    RSS Feed RSS for this blog

    Learn more about syndication, feeds, and feedburning.

  • Archive
  • Search






  • Home
  • About

© Copyright Vincent Maher. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top