[Tutor] Help with sessions

anil maran anilmrn at yahoo.com
Mon Oct 16 05:47:34 CEST 2006


I tried creating sessions for each app
and then did htis code
def session_mw(app):
    sessionStore = DiskSessionStore(storeDir="%s/sessions/" % os.getcwd(), timeout=5)
    sessionStore= sessionStore.createSession()
    return SessionMiddleware(sessionStore, app)
 
def initsession(session):
    session['id'] = 0
    session['username'] = ''
    session['groups'] = ''
    session['loggedin'] = 0
in 2 diff webapps, I run them in 2 different ports 9109 and 9911
But the problem is both are now sharing the same session how do i ensure that they dont share browser session and create a new one from themselves


 
Anil



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061015/e74d785f/attachment.html 


More information about the Tutor mailing list