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
Sharing sessions between two Pylons sites
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Mike Orr  
View profile  
 More options Aug 23 2012, 5:10 pm
From: Mike Orr <sluggos...@gmail.com>
Date: Thu, 23 Aug 2012 14:10:57 -0700
Local: Thurs, Aug 23 2012 5:10 pm
Subject: Sharing sessions between two Pylons sites
I need to share sessions between an existing Pylons site and a new
mobile-site derivative that's a subdomain (example.com and
m.example.com). So I need to share the session cookie and session
store. In the Beaker docs it says that
    session.domain = .domain.com
will make the cookie shared across subdomains. That leaves the session
store. I'm using the default file-based sessions. If I just point the
two applications to the same session directory, will they do locking
properly?

Background info. The mobile site was made in a branch of the main
site. Ultimately we want to merge the codebases so that the same
application can respond to both domains, but I'm not sure we can
finish that before deployment. I'd rather convert the application to
Pyramid first. :) Also, the reason for sharing the sessions is that we
save search results in the session, and we want to preserve the
current search when the user switches to the full site or the mobile
site.

--
Mike Orr <sluggos...@gmail.com>


 
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.
Ronan Amicel  
View profile  
 More options Aug 24 2012, 5:51 am
From: Ronan Amicel <ronan.ami...@gmail.com>
Date: Fri, 24 Aug 2012 11:51:02 +0200
Local: Fri, Aug 24 2012 5:51 am
Subject: Re: Sharing sessions between two Pylons sites

On Thu, Aug 23, 2012 at 11:10 PM, Mike Orr <sluggos...@gmail.com> wrote:
> I need to share sessions between an existing Pylons site and a new
> mobile-site derivative that's a subdomain (example.com and
> m.example.com). So I need to share the session cookie and session
> store. In the Beaker docs it says that
>     session.domain = .domain.com
> will make the cookie shared across subdomains. That leaves the session
> store. I'm using the default file-based sessions. If I just point the
> two applications to the same session directory, will they do locking
> properly?

If everything runs on a single server, I guess you can use file-based sessions.

If you want more flexibility, or want to avoid filesystem access, you
might want to look at Redis-backed sessions using beaker_extensions.

--
Ronan Amicel

«« Twitter overload?
»» Get your daily summary at http://focus.io/


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »