I have to create the database, using the same model for every user it is not safe, so I use the session_id as name file for the model, I need to intercept when a user's session ends, to delete its model
2014/1/8 Anthony <abasta...@gmail.com> > On Wednesday, January 8, 2014 1:48:28 AM UTC-5, Giuseppe D'Amico wrote: >> >> I have to connect to a database known only at runtime, I create the >> model on the fly, >> > > Do you have to create the database or a database table on the fly (or > something else)? > > >> but it is not thread safe, >> > > Why is it not thread safe? > > >> so I thought <http://it.dicios.com/enit/thought> that a possible >> solution could be to give to the model the name of the session_id >> > > Do you need a model per session or just per user? In any case, why does > this require knowing when the user terminates the session -- do you have to > destroy the data at that point? > > Anthony > >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/rzS37obsTI4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.