Closed (works as designed)
Project:
Mobile Tools
Version:
6.x-1.12
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2010 at 12:14 UTC
Updated:
25 Nov 2010 at 04:33 UTC
Hi
I followed the instructions at http://drupal.org/node/459686 to setup a mobile version of a drupal site. However, when I try and login using the mobile version of the site, I keep getting an access denied message..I am using the user agent switcher firefox module to switch to a mobile version of the theme
Desktop version of the theme is at localhost:8082
mobile version is at m.localhost:8082
I have setup a test site on my pc with the following
Drupal 6.15
Apache/2.2.14 (Win32) PHP/5.2.13
Mobile Tools 6.x-1.12
Nokia_Mobile theme
Can someone help
Comments
Comment #1
zhongguo999999 commentedI have the same problem!
I have used the moblile theme.
I have some helps too.
Thank you advance!
Comment #2
twom commentedThis is an issue that is not related to Mobile Tools, but is a Drupal configuration issue.
In your settings.php file, you can set a value for $cookie_domain and you have to set this to your base domain if you want your cookie to be set for all your subdomains:
e.g. if your site is http://www.mobiledrupal.com and the mobile version is http://m.mobiledrupal.com then you have to set $cookie_domain = ".mobiledrupal.com"
The leading dot is very important!
This way, when you log in, the cookie will be set for the base domain "mobiledrupal.com" and will be accessible for your mobile site too.
If you have commented out $cookie_domain, then your mobile domain will not work.
However, this will NOT work if you just use localhost and m.localhost, because you need at least 2 dots.
You better create vhosts on your machine such as http://yourdomain.local and http://m.yourdomain.local.
Comment #3
zhongguo999999 commentedThank you for your answer!
My problem is resolved!