Retaining session information on form submits/page refreshs

6 views
Skip to first unread message

Latif Masud

unread,
Jun 12, 2014, 12:23:41 PM6/12/14
to web...@googlegroups.com
Hello Group,

I have a string that acts as an events log that I print out to the webpage. The string is defined as a blank global string before the function is defined, and as the code is executed, more and more information is concatenated to the string. 

The problem is that every time a form is submitted or the page is refreshed, the string is set back to blank. I tried working around this by using the sessions class to store the variable and even using the web2py Storage class to store away the variable in a dictionary, but neither method worked. I was wondering if anyone has a solution to this?

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages