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
Add domain to Session :: Cookie
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
 
Denis Kuzmenok  
View profile  
 More options Nov 13 2011, 1:38 pm
From: Denis Kuzmenok <viktowa...@gmail.com>
Date: Sun, 13 Nov 2011 10:38:56 -0800 (PST)
Local: Sun, Nov 13 2011 1:38 pm
Subject: Add domain to Session :: Cookie
Hi.
I'm wondering how to add domain to Plack::Session::State::Cookie to
set cross-subdomain cookie with Builder.
The problem is that there are many domains and i should set cookie to
current domain (test.example.com => .example.com, etc). How can that
be done?
Thanks, in advance.

builder {
    enable "Plack::Middleware::AccessLog::Timed", format => "%h %l %u
%t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D", logger => sub
{ $log->debug(@_) };
        enable 'Session',
                store => 'File',
                state => Plack::Session::State::Cookie->new(
                                session_key => 'sid',
                                domain => '.example.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.
Tatsuhiko Miyagawa  
View profile  
 More options Nov 13 2011, 4:32 pm
From: Tatsuhiko Miyagawa <miyag...@gmail.com>
Date: Sun, 13 Nov 2011 21:32:27 +0000
Local: Sun, Nov 13 2011 4:32 pm
Subject: Re: Add domain to Session :: Cookie
You can set the domain per request in $env->{'psgix.session.options'}.

--
Tatsuhiko Miyagawa

 
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 »