I've got a site hosted with Heroku. Heroku assigns my site a domain name of someName.herokuapp.com. I've got a custom domain name www.someName.com which points to someName.herokuapp.com. For consistency purposes in my config file I have a variable:
$ServerPath = "somename.herokuapp.com/";
That way when I need to reference a some file I could just go $ServerPath.$fileName
Here's the problem. When the user logs in from www.somename.com a session is created on the server. However if at any time the user clicks some link which is tied to $ServerPath the user is redirected to somename.herokuapp.com and on THAT domain the session seems to be non-existant and the user is logged out.
Is there any way to keep my $ServerPath var as someName.herokuapp.com and have the session to be open on both www.someName.com and someName.herokuapp.com?