Guys I have solved the issue. Needed to add cookie details.
Just added *web.config.session_parameters.update(cookie_name="test_cookie",
cookie_domain="/",cookie_path=store,timeout="60") *in following manner and
now session is working as intended:
if web.config.get('_session') is None:
session = web.session.Session(app, store,
initializer={'username':'Guest','userId':'Guest','loggedIn':False})
web.config._session = session
else:
session = web.config._session
web.config.session_parameters.update(cookie_name="test_cookie",
cookie_domain="/",cookie_path=store,timeout="60")
render = web.template.render('templates/', base='main',
globals={'session':session})
Regards,
Partho
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.