Connecting Tech Pros Worldwide Help | Site Map

Login works only on some devices

Newbie
 
Join Date: Jun 2007
Posts: 26
#1: May 22 '09
I am developing a mobile version of my site. I have limited testing resources: a Blackberry and Kindle. I have a friend who can run a test on an iPhone, but I don't have access to it.

The problem is that I can log in to the site on the Blackberry and the Advanced version of the Kindle browser, but not with the simple version or with the iPhone.

I believe the problem is with the cookies, since the database is registering a login for all attempts, even on the iPhone.

My site is on subdomain: m.site.com and the cookies are set on the main domain www.site.com. Cookies are specified to belong to the whole domain ( Response.Cookies("DBUser").Domain = ".site.com" ) .

Why would it be working on some devices and not others? The iPhone is the most important one for it to work on.
markmcgookin's Avatar
Moderator
 
Join Date: Dec 2006
Location: Northern Ireland / England
Posts: 546
#2: May 22 '09

re: Login works only on some devices


Have you tried asking your friend to try all three cookie settings then attempt to login to your site through the phone (obviously clearing cookies in between attempts)

1) Accept Always
2) From Visited
3) Never

If they have 1/2 successful logins then a failure on the "Never" option, you know that this may be the cause of your probelm. You should narrow this down with some heavy testing to find out exactly WHY then can't log in.

Mark
Newbie
 
Join Date: Jun 2007
Posts: 26
#3: Jun 2 '09

re: Login works only on some devices


Took a while to get this info, but strange it is.

Works on "From Visited" ONLY.

Any ideas why it would work for that and not "Accept always?"

Is there a difference in how a browser accepts cookies vs. session variables?

Thanks!
Newbie
 
Join Date: Jul 2009
Posts: 2
#4: Jul 28 '09

re: Login works only on some devices


HI,
in my experience (10 years) I never had problem with any type of login with any type of devices.
The only problem than I have had was for the https connections with manage the certification authority.
So your problem is only a domain problem to set correctly on the cookie, and I think with some more attempts you will have the solution.
Good luck
Reply

Tags
cookies, iphone, subdomain


Similar Mobile Development bytes