hey everyone,
running 2.18.5. ok under the db.py i have something like:
db.define_table('courses',
Field('subject_id', db.subjects, requires=IS_IN_DB(db, db.subjects.id,
'%(subject)s
(%(id)s)'), writable=False, readable=False),
Field('user_id', db.auth_user, requires=PROFESSOR, default
Hi,
I am using web2py to implement REST Server . I gave a 2 GET calls using
same browser instance. I am finding the
session id changing between the calls
[Tue Jul 16 19:57:45 2013] response.session_id
None:9f4c92be-9f70-4a1c-a22c-4b46d480d2c5
[Tue Jul 16 19:57:45 2013] request.env.http_cook
The client is an adroid app. I am getting the session_id as none in this
function
def myTestUserLoginFunc():
import json
import gluon.contrib.simplejson
import gluon.contrib.simplejson as sj
data = sj.loads(request.body.read())
myemail=data['email']
mypassword=data['p
My application is completely node ID driven. I have the following router
function:
def router():
if not len(request.args):
redirect(URL('addressbook','index'))
else:
id=int(request.args(0))
account=db(db.nodeAccount.nodeID==id).select(db.nodeAccount.ALL).first()
In my node based app I create the following object
session[id]=Storage(id=id) in which I store some data and menus the first
time the index page of a site is loaded. After that session[id].node,
session[id].navbar etc. evaluate to True and the data and menus are not set
again. When the user edi
I have a router function in which I have the following lines of code:
session[id]=Storage(id=id)
session[id].accountID=ADVANCEDACCOUNTID
session[id].pluralID=account.pluralID
redirect(URL('site','index',args=id))
in site/index/id I store settings in session[id]:
if not session[id].s
I have the following lines of code:
aboutnav=db((db.NodeNav.nodeID==id)&(db.NodeNav.navID==db.Nav.id)&(db.Nav.navbarID==ABOUTNAVBARID)).select(db.Nav.ALL,db.NodeNav.ALL,orderby=db.Nav.position).as_list()
if aboutnav:
session[id].aboutnav=True
for r in aboutnav:
if r['Nav']['id']==A
how can I get the session id of a web2py app on Google App Engine?
to make of this?
or have to do differently?
Hi all,
In my application, the session id seems to be getting re-used across
different sessions.
To explain:
Login 1:
---
print str(session) on user/logout shows the following:
, 'last_visit':
datetime.datetime(2010, 4, 19, 11, 18, 37, 417024), 'remember': False}
>}>
Login 2:
-
9 matches
Mail list logo