When a user opens a browser and goes to a page on our site, it seems
that session cookies are not available. It's only after they have
been to at least one page that a cookie is available. For instance,
from pylons import request, response, session
if 'session-id' in session:
## do something
On Apr 6, 2009, at 6:39 AM, edgarsmolow wrote:
When a user opens a browser and goes to a page on our site, it seems
that session cookies are not available. It's only after they have
been to at least one page that a cookie is available. For instance,
from pylons import request, response, sessi
How (and when) do I update Pylons (beaker) on my workstation?
Thanks.
Edgar
On Apr 6, 11:50 am, Ben Bangert wrote:
> On Apr 6, 2009, at 6:39 AM, edgarsmolow wrote:
>
>
>
> > When a user opens a browser and goes to a page on our site, it seems
> > that session cookies are not available. It's o
On Apr 6, 2009, at 9:49 AM, edgarsmolow wrote:
How (and when) do I update Pylons (beaker) on my workstation?
You can update to the latest dev version right now with:
easy_install -U http://bitbucket.org/bbangert/beaker/get/3d789a1a895b.gz
Or later today after I release it (there's no other pe
Ben,
I installed with the first option
easy_install -Uhttp://bitbucket.org/bbangert/beaker/get/
3d789a1a895b.gz
and that fixed the problem.
Thanks.
Edgar
On Apr 6, 1:24 pm, Ben Bangert wrote:
> On Apr 6, 2009, at 9:49 AM, edgarsmolow wrote:
>
> > How (and when) do I update Pylons (beaker)
On Apr 6, 2009, at 4:12 PM, edgarsmolow wrote:
I installed with the first option
easy_install -Uhttp://bitbucket.org/bbangert/beaker/get/
3d789a1a895b.gz
and that fixed the problem.
I released Beaker 1.3 a little while ago, so you can install to a
released version now.
Cheers,
Ben
smime
Sorry, Ben, with additional testing turns out that the problem still
exists.
Edgar
On Apr 6, 7:24 pm, Ben Bangert wrote:
> On Apr 6, 2009, at 4:12 PM, edgarsmolow wrote:
>
> > I installed with the first option
> > easy_install -Uhttp://bitbucket.org/bbangert/beaker/get/
> > 3d789a1a895b.gz
>
On Apr 6, 2009, at 6:39 AM, edgarsmolow wrote:
if 'session-id' in session:
## do something
else:
session['session_id'] = some_session_id
session.save()
## do other stuff
When first coming to a web page, a new cookie is *always* being
created because the IF test *always* fails because the se
Ben,
I've looked at this documentation,
http://pylonshq.com/docs/en/0.9.7/sessions/#id2
but did not see a reference to these fields (you mentioned):
session['_id']
session['_accessed_time']
session['_creation_time']
I suppose I still don't understand the problem. If the cookie exists,
when t
On Apr 7, 2009, at 5:52 AM, edgarsmolow wrote:
http://pylonshq.com/docs/en/0.9.7/sessions/#id2
but did not see a reference to these fields (you mentioned):
session['_id']
session['_accessed_time']
session['_creation_time']
I suppose I still don't understand the problem. If the cookie exists,
On Apr 7, 2009, at 10:36 , Ben Bangert wrote:
> On Apr 7, 2009, at 5:52 AM, edgarsmolow wrote:
>
>> http://pylonshq.com/docs/en/0.9.7/sessions/#id2
>>
>> but did not see a reference to these fields (you mentioned):
>>
>> session['_id']
>> session['_accessed_time']
>> session['_creation_time']
>>
>
I probably wanted this instead:
## set
response.set_cookie('sitelang', 'uk', expires=3600) # Pylons 0.9.6
syntax.
response.set_cookie('sitelang', 'uk', max_age=3600) # Pylons 0.9.7
syntax.
## get
lang = request.cookies['sitelang']
from here:
http://wiki.pylonshq.com/display/pylonscookbook/Sett
I now have a somewhat different issue with session cookies.
1. I see that session['_id'] is created when a page on the site is
first encountered. Are '_creation_time' and 'accessed_time' supposed
to be created automatically? Or should those two fields be set in my
code?
2. The code below is in
13 matches
Mail list logo