correction... rearranged the code a bit, and all works as expected on my side...
On Friday, November 16, 2012 8:43:24 PM UTC-5, Adi wrote: > > tested the same code in Version 2.2.1 (2012-10-21 16:57:04) stable, and > session works as expected, but not in trunk. > > simplified version of what i'm doing: > def a(): > products=db(db.products>1).select() > session.category_products_keys = products.as_dict().keys() > print session.category_products_keys # all results displayed properly > > def b(): > print session.category_products_keys # no results > > a() > b() > > > > > > > > > > > On Friday, November 16, 2012 5:50:02 PM UTC-5, villas wrote: >> >> Using latest trunk with Apache/Linux. >> >> I'm having log in problems, especially with IE 9. >> >> I've noticed that in the browser I get the cookie set: >> >> NAME session_id_myapp VALUE >> 75.141.38.104-8a5232dc-03d5-4312-bc65-2157590a973b DOMAIN mydomain.com PATH >> / EXPIRES At the end of the Session >> So that's good. However, it doesn't always create session file >> 75.141.38.104-8a5232dc-03d5-4312-bc65-2157590a973b >> >> If I cannot find a session file with that name, it seems that I cannot >> log in. >> >> When I restart the browser, sometimes the session file and cookie are >> created OK. Then I can log in too. With Firefox it is more reliable, but >> again, it doesn't always work. >> >> Why is the session file not always created? Does anyone know what the >> problem is? >> >> Is it related to this change? >> >> http://code.google.com/p/web2py/source/detail?r=80a653289fb58322521d7c4b8f1082098a8f2618 >> >> Regards, >> David >> > --