To paul jobs:
Of course not, you just and only can initialize in the code.py, code.py is
where the main application is, and then use this instance in each
subapplication, if you get different session in each application, you cann't
share the information you stored in it., and where you shared is actually
the session ID, not the variable you stored in the session scope.
2008/12/8 paul jobs <[EMAIL PROTECTED]>
> does every subapp get a different session or the same shared session?
>
>
> On 12/6/08, vulcan <[EMAIL PROTECTED]> wrote:
>>
>>
>> Here is the solution:
>> initialize Session in code.py and attach it to the web namespace, then
>> can use it in every subapplications
>> e.g.
>> session = web.session.Session(app, web.session.DiskStore('sessions'))
>> web.ses = session
>>
>>
>> On Dec 6, 7:20 pm, "Alva Yi" <[EMAIL PROTECTED]> wrote:
>> > session support in webpy0.3 is a big highlight,is there any one give a
>> > example to show how to use session for sharing infomaion during
>> > sub-applications?I have tried a lot, and i just can't get it work!
>>
>>
>> >>
>>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---