1

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,

Chin
  • 12,582
  • 38
  • 102
  • 152

1 Answers1

1

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.

Community
  • 1
  • 1
Pickels
  • 33,902
  • 26
  • 118
  • 178