views:

9

answers:

0

I have a 3.5 .net site running forms authentication on a folder named "portal". Once the person has logged in successfully all code runs from within that folder, and everything works very well.

However I recently installed sigma grid and it uses a JSON type call to data.aspx to populate the grid. It worked just fine until a client tried to log in by going to mydomain.com vs. www.mydomain.com.

Because the JSON call in the javascript says to pull data from http://www.mydomain.com/portal/data.aspx vs. http://mydomain.com/portal/data.aspx the call fails since they are logged in via mydomain.com vs. www.mydomain.

I'm wondering if there is a way to tell .net that either with or without the www is ok after successful authentication has occurred. I could also control the login page and put in 301's to make sure they only can log in via the www, but that caused some other issues that I haven't quite figured out yet.

Any ideas greatly appreciated.