Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Two servers on the same host
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vagif Verdi  
View profile  
 More options Apr 6 2012, 12:40 pm
From: Vagif Verdi <vagif.ve...@gmail.com>
Date: Fri, 6 Apr 2012 09:40:07 -0700 (PDT)
Local: Fri, Apr 6 2012 12:40 pm
Subject: Re: [Yesod] Two servers on the same host

Here's another suggestion. Make yesod chose the session cookie name in the
form of _session_port

Like _session_3000

This way, there's no need for manual configuration, no need to break API.

On Friday, April 6, 2012 7:38:30 AM UTC-7, Michael Snoyman wrote:

> Three ideas come to mind:

> 1. You can set the cookie as being bound to a specific port, but not
> all browsers respect this.
> 2. You could set up virtual hosting and serve each app from a
> different virtual host.
> 3. We can have _SESSION be configurable. I think the most obvious
> approach to this would be to offer an alternative to
> `clientSessionBackend` that takes a parameter for the cookie name.

> I'm guessing you're looking for option (3). Anyone see a problem with
> that approach?

> Michael

> On Fri, Apr 6, 2012 at 4:25 PM, Kirill Zaborsky <qri...@gmail.com> wrote:
> > We have 2 yesod servers on the same host working on different ports, one
> of
> > them is admin interface.
> > It happens that sessionName in yesod is set to "_SESSION" and because
> cookie
> > name is the same for both servers I get session conflict (i.e. if I
> login to
> > public interface I get logged out from admin interface and vice versa).
> > Is there any way to get 2 yesod servers on the same host without
> conficting
> > one with another?

> > Kind regards,
> > Kirill Zaborsky.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.