Helio MC Pereira
2005-06-05 19:00:23 UTC
Hi Irmen,
Have one question with sharedSession = True in wepapps inside the same
virtualhost.
All webapps in the virtualhost shared the SessionCtx? Can all write in
SessionCtx and be disponible to all webapps (root webapps to) ?
I'm doing some tests and I can't put it to work :P
have 3 webapps in the same vhost:
1- vhost = http://shkl.codezone.ath.cx/ - have sharedSession
2- /xixi/ - have sharedSession
3- /manage/ - don't have sharedSession
in root index.y are allways writing self.SessionCtx.wapp {} because it
don't exist.
Am I doing something wrong?
you can try it in http://shkl.codezone.ath.cx/
Thanks for all,
Helio Pereira
root index.y
<%
if not hasattr(self.SessionCtx, 'wapp'):
self.SessionCtx.wapp = {}
self.write("Create self.SessionCtx.wapp{}")
self.write("<br>")
if not self.SessionCtx.wapp.has_key('root'):
self.SessionCtx.wapp['root'] = "Principal"
self.write("add self.SessionCtx.wapp['root']")
else:
self.write("don't do nothing... great :-)")
xixi index.y
<%
if not self.SessionCtx.wapp.has_key('xixi'):
self.SessionCtx.wapp['xixi'] = "Vai fazer xixi"
self.write("add self.SessionCtx.wapp['xixi']")
else:
self.write("don't do nothing... great :-)")
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r
Have one question with sharedSession = True in wepapps inside the same
virtualhost.
All webapps in the virtualhost shared the SessionCtx? Can all write in
SessionCtx and be disponible to all webapps (root webapps to) ?
I'm doing some tests and I can't put it to work :P
have 3 webapps in the same vhost:
1- vhost = http://shkl.codezone.ath.cx/ - have sharedSession
2- /xixi/ - have sharedSession
3- /manage/ - don't have sharedSession
in root index.y are allways writing self.SessionCtx.wapp {} because it
don't exist.
Am I doing something wrong?
you can try it in http://shkl.codezone.ath.cx/
Thanks for all,
Helio Pereira
root index.y
<%
if not hasattr(self.SessionCtx, 'wapp'):
self.SessionCtx.wapp = {}
self.write("Create self.SessionCtx.wapp{}")
self.write("<br>")
if not self.SessionCtx.wapp.has_key('root'):
self.SessionCtx.wapp['root'] = "Principal"
self.write("add self.SessionCtx.wapp['root']")
else:
self.write("don't do nothing... great :-)")
xixi index.y
<%
if not self.SessionCtx.wapp.has_key('xixi'):
self.SessionCtx.wapp['xixi'] = "Vai fazer xixi"
self.write("add self.SessionCtx.wapp['xixi']")
else:
self.write("don't do nothing... great :-)")
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r