sion_key = request.session.session_key
>> if session_key is not None:
>> return HttpResponse(json.dumps({'status': 'Success',
>> 'sessionid': session_key}))
>> else:
>>
n_key is not None:
> return HttpResponse(json.dumps({'status': 'Success',
> 'sessionid': session_key}))
> else:
> return HttpResponse(json.dumps({'status': 'Empty session
&g
if session_key is not None:
return HttpResponse(json.dumps({'status': 'Success',
'sessionid': session_key}))
else:
return HttpResponse(json.dumps({'status': 'Empty session
key'}))
can you reproduce the bug? can you use a more recent django version?
On Wed, Jun 3, 2015 at 6:10 AM, Greg wrote:
> I've noticed a number of apparent session collisions (i.e., two or more
> users getting the same session key and therefore each others session data)
> on a site I ma
I've noticed a number of apparent session collisions (i.e., two or more
users getting the same session key and therefore each others session data)
on a site I manage. The site is on django 1.3.7, which shouldn't have any
issues with session key collisions (there were some in earl
Thanks David,
Makes sense .
On Feb 26, 9:39 am, David De La Harpe Golden
wrote:
> On 26/02/10 16:50, Sumanth wrote:
>
> > Hi ,
>
> > I was trying to access the session key using request.session object in
> > django. To do this we can use
> >
On 26/02/10 16:50, Sumanth wrote:
Hi ,
I was trying to access the session key using request.session object in
django. To do this we can use
request.session._session_key or request.session.session_key out of
this which is the right one to use ?
The latter, without the leading underscore
Hi ,
I was trying to access the session key using request.session object in
django. To do this we can use
request.session._session_key or request.session.session_key out of
this which is the right one to use ?
The Problem:
When you open browser for first time on web server the
request.session
Sorry a typo, Please read that like this
Hi all,
I have apache + mod_wsgi, use memcache as session backend and
cmemcache as api , but at times the server stops responding. when i
checked thru the log I saw RuntimeError: Unable to create a new
session key.
The app starts working when I restart
Hi all,
I have apache + mod_wsgi, use memcache as session backend and
cmemcache as api , but at time the server starts responding. when i
checked thru the log I saw RuntimeError: Unable to create a new
session key.
The app starts working when I restart, what could be reason
regards
Vinu
On Feb 11, 6:53 pm, Kevin Audleman wrote:
> I have the same session. Django has been so slick so far I would
> imagine it has a way to access session variables from a template. Have
> you found the solution?
>
> Kevin
See the documentation for context processors - the 'request' one is
the what y
I have the same session. Django has been so slick so far I would
imagine it has a way to access session variables from a template. Have
you found the solution?
Kevin
On Jan 17, 1:15 pm, dahpgjgamgan wrote:
> Hi,
>
> A simple scenario:
> - A generic object detail view, on which I can vote for
Hi,
A simple scenario:
- A generic object detail view, on which I can vote for the
displayed object.
- vote is handled by custom view which sets a key in session (named
"vote_) indicating that a vote was made
- in the template I want to check for existance of this key, and if
present, do
;')
s['name'] = 'pavel'
s.save()
so it creates new row in django_session table, but how will i obtain now
the session key to retrive the session data?
thank you very much for advice
pavel
--~--~-~--~~~---~--~~
You received this message bec
14 matches
Mail list logo