user login state - different behavior under www

Get in to Exponent code and find out how to create modules. Ask questions, get tips and tricks to make anything possible.

Posts: 25
Joined: Thu Aug 11, 2011 3:34 pm
PostPosted: Wed Mar 13, 2013 9:53 pm
i wrote a custom module. it works as expected under http://<site_domain>.com; however, if the user adds the "www" in the url, then the site no longer recognizes the user as logged in. the apache config is similar to other sites, where the issue does not occur.

this is probably a problem of my own, but i was wondering if anyone has encountered this issue in the past, while developing.

issue encountered in v2.0.6-patch2
User avatar
Posts: 512
Joined: Sat Nov 06, 2010 10:09 am
PostPosted: Thu Mar 14, 2013 1:03 am
Just for clarification...is this only occurring inside your custom module or across the whole site? And if only in your module, is this within the php code (controller/model) or a view (.tpl file)?

Posts: 25
Joined: Thu Aug 11, 2011 3:34 pm
PostPosted: Thu Mar 14, 2013 8:23 pm
after more testing, i do not think the issue is related to my module. here are the steps to what i have done:

1. log in as admin from http: // www.
2. i can see the admin nav bar on all pages (that also have www in the url)
3. i type a new url, without the "www" (e.g. <site>.com/about-us)
4. i can no longer see the admin nav bar

at this point, my module does not/should not run at all

thanks for your response
User avatar
Posts: 103
Joined: Tue Oct 12, 2010 7:23 pm
PostPosted: Thu Mar 14, 2013 11:25 pm
This makes me think something is whacky with DNS...

Are you getting any Javascript errors?

Do you have other sites on this server that behave similarly?

Posts: 25
Joined: Thu Aug 11, 2011 3:34 pm
PostPosted: Mon Mar 18, 2013 5:20 pm
there may be something related to DNS. i'll update if i come across the solution.

Return to Developing for Exponent

Who is online

Users browsing this forum: No registered users and 0 guests

cron