No, nothing is write explicitly to the session (as far as I can see), I
only save the info to the database and return a string like "{}"
session.forget() looks like  solve the problem.
Thanks.

Best Regards
Itamar Cohen
Picatek
Ahornvej 27
DK-7700 Thisted
Denmark
www.picatek.dk
i...@picatek.dk
T: +45 97 91 07 82
M:+45 29 89 07 82

On 27 September 2015 at 15:50, Anthony <abasta...@gmail.com> wrote:

> No session file should be created unless something is actually written to
> the session. Are you explicitly writing something to the session anywhere
> during these requests, or running any code that writes to the session
> (e.g., processing a form)?
>
> Anthony
>
> On Saturday, September 26, 2015 at 4:47:11 PM UTC-4, icodk wrote:
>>
>> I have many sensors that reports periodically to a web2py application.
>> The sensors do not need to log in, they just POST a json string to
>> specific controller function, get a few bytes in response and close the
>> connection. However each time a sensor connect, a session file is
>> generated. This create a lot of useless files. Otherwise the site has a
>> standard user interface that requires login from users.
>> Is it possible  to avoid the session creation just for that controller
>> function or do I need to make a session less app that update the same
>> database ?
>>
>> --
> 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/8O6z1tOR2RM/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/d/optout.
>

-- 
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