You can also use .htaccess or ISAPI Rewrite (or any similar tool) to handle this at the web server level. If that's available, I would do that over having cf code worry about it.
-Steve Steve Parks Adept Developer Consulting, Inc. 713.528.3355 (W) 281.924.5481 (M) [email protected] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mike Gillespie Sent: Monday, May 18, 2009 4:37 PM To: Houston ColdFusion Users' Group Subject: [houcfug] Re: Session variables IMHO, I think the problem is that FF and Safari know there is a difference between mysite.com and www.mysite.com and IE, in its infinite wisdom, is making the decision for you that they are the same since everyone knows that the "www" in a URL is silent like the P in bathtub..(sorry) I think if you force domain cookies you will also break it in IE since you will specifically be telling IE that www.mysite.com is not that same as mysite.com I am guessing that this is a content app of some sort? and your users are providing the "bad" or inconsistent urls? You may be forced to parse their input to correct it to avoid this error..or you could resort to the old standby of putting the token in the URL.. M On May 18, 3:52 pm, "Mike Demahy" <[email protected]> wrote: > I am having a problem with my session variables in CF8. The problem is > occurring in FF and Safari, but not in IE7. > > The problem is, if the user types inwww.mydomain.comthe session variables > work fine. However, if the user types http:// mydomain.com without the www > then the application.cfc (checks for a session variable existence) takes the > user back to the login page and tells them they have been logged out because > of inactivity. > > At that point they have been directed towww.mydomain.com. They log in again > and everything is fine. In ff or safari, if they type thewww.mydomain.com > the system works correctly. > > My first thought was to check for the cgi.http_refer variable and if the > user typed in mydomain.com, then immediately redirect them towww.mydomain.comaddress. The problem is the http_refer is blank. > > Anybody run across this before? Any solutions? > > Thanks, > > Mike Demahy > > 832-358-9493 > > Msoft Horizontal LR > > image001.jpg > 3KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [email protected] For more options, visit http://groups.google.com/group/houcfug?hl=en -~----------~----~----~----~------~----~------~--~---
