In the old days it was possible to switch from file based and db based and 
old sessions would be migrated automatically. We made mani changes to the 
session logic and I have not tested whether this still works. Perhaps you 
can help use.

create a simple session with a counter.

def index():
     session.counter = (session.counter or 0)+1
     return str(session.counter)

reload a few times to increase the counter, than add

session.connect(request, response, db=db)

reload and see if counter continues or is reset to zero.
Let us know.





On Friday, 19 December 2014 01:03:31 UTC-6, harsha tanguturi wrote:
>
> The sessions are being stored in the files but I would like to migrate 
> them to DB without disturbing the existing sessions. 
>

-- 
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/d/optout.

Reply via email to