You can check ListFirst(CGI.Server_Name, '.') IS 'www' and redirect based on
that.  You may also want to use the setDomainCookies variable in your
App.cfc to true.  I don't have this on mine and it seems to work with or
without the www, but it may depend on the web server and so forth.

 

-Steve

 

Steve Parks

Adept Developer Consulting, Inc.

713.528.3355 (W)

281.924.5481 (M)

[email protected]

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Mike Demahy
Sent: Monday, May 18, 2009 3:52 PM
To: [email protected]
Subject: [houcfug] Session variables

 

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 in www.mydomain.com the 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 to www.mydomain.com. They log in again
and everything is fine.  In ff or safari, if they type the www.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 to
www.mydomain.com address.  The problem is the http_refer is blank.

 

Anybody run across this before?  Any solutions?

 

Thanks, 

 

Mike Demahy

832-358-9493

 

Msoft Horizontal LR

 



 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

<<inline: image001.jpg>>

Reply via email to