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


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to