Re: Session key is empty after login on Django Channels development server

2017-01-09 Thread Utku Gültopu
sion_key = request.session.session_key >> if session_key is not None: >> return HttpResponse(json.dumps({'status': 'Success', >> 'sessionid': session_key})) >> else: >>

Re: Session key is empty after login on Django Channels development server

2017-01-08 Thread Andrew Godwin
n_key is not None: > return HttpResponse(json.dumps({'status': 'Success', > 'sessionid': session_key})) > else: > return HttpResponse(json.dumps({'status': 'Empty session &g

Session key is empty after login on Django Channels development server

2017-01-08 Thread Utku Gültopu
if session_key is not None: return HttpResponse(json.dumps({'status': 'Success', 'sessionid': session_key})) else: return HttpResponse(json.dumps({'status': 'Empty session key'}))

Re: Django session key collision

2015-06-03 Thread Avraham Serour
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

Django session key collision

2015-06-02 Thread Greg
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

Re: session key

2010-02-26 Thread Sumanth
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 > >

Re: session key

2010-02-26 Thread David De La Harpe Golden
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

session key

2010-02-26 Thread Sumanth
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

Re: RuntimeError: Unable to create a new session key.

2009-08-12 Thread Vinu[theinvinciblemaster]
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

RuntimeError: Unable to create a new session key.

2009-08-12 Thread Vinu Varghese
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

Re: Trying to retrieve dynamically generated session key in template

2009-02-11 Thread Daniel Roseman
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

Re: Trying to retrieve dynamically generated session key in template

2009-02-11 Thread Kevin Audleman
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

Trying to retrieve dynamically generated session key in template

2009-01-17 Thread dahpgjgamgan
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

how to obtain session key after create

2008-04-22 Thread [EMAIL PROTECTED]
;') 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