app creating two sessions for same user - express js

My app is creating two sessions for a user dependent on whether the user types the url with a www prefix or not. Is this something I should/can deal with in express, or should I look to normalize the url higher in my stack?

any pointers much appreciated,

I would recommend redirecting all www.* urls to one without www or vice versa. More information can be found here or if you are using a forward proxy like Nginx you could use that instead.