> > session[request.args(0)].id=request.args(0) > session[request.args(0)] doesn't exist yet, so you can't refer to an attribute of it (i.e., "id"). I assume you'd like it to be a Storage object:
from gluon.storage import Storage session[request.args(0)] = Storage(id=request.args(0)) # now it's a Storage object, so you can start adding new keys session[request.args(0)].otherkey = "other value" Also, to clean up your code a bit: from gluon.storage import Storage session[request.args(0)] = Storage() id = session[request.args(0)].id = request.args(0) Then everywhere you currently refer to session[request.args(0)].id, you can simply use id (even without the above, you could just use request.args(0)itself, since it is equivalent to session[requests.args(0)].id). Finally, do you even need the "id" key, given that it is the same as the name of its parent object? Couldn't you just do: from gluon.storage import Storage id = request.args(0) session[id] = Storage() session[id].somekey = 'some value' Anthony --

