There's only the session cookie that gets set automatically (though there
is one for each app, including the admin app).
If you want to completely disable sessions, including sending the session
cookie, you can add the following anywhere in your routes.py file:
from gluon.settings import global_settings
global_settings.web2py_disable_session = True
That will disable sessions for all apps. If you want to disable sessions
for only some apps and you do not rely on the parameter-based rewrite
system, you can use the pattern-based rewrite system as follows:
routes_in = [('/welcome', '/welcome', dict(web2py_disable_session=True)]
That will add web2py_disable_session to the global environment only for
requests to the welcome app.
Note, the share.js widget included by default in the footer of the default
layout.html also sets some cookies, so you would probably want to remove
that from the layout as well.
Anthony
On Saturday, December 5, 2015 at 3:09:09 PM UTC-5, Robin Manoli wrote:
>
> Thanks for your reply, Anthony.
>
> I also noticed that sessions set cookies. Is there a way to make web2py
> not set any cookies? I'm wondering about all automatic cookies that are
> set, which they are and if they can be removed.
>
> Den lördag 5 december 2015 kl. 19:06:54 UTC+1 skrev Anthony:
>>
>> Yes, web2py automatically creates a session cookie (which is converted to
>> a cookie with an explicit expiration when the "remember me" option is
>> selected).
>>
>> Anthony
>>
>> On Saturday, December 5, 2015 at 11:01:14 AM UTC-5, Robin Manoli wrote:
>>>
>>> I'm wondering if web2py sets cookies automatically, so that you would
>>> have to inform the users (even if the site I make not explicitly sets
>>> cookies). I would assume the "remember me" login option uses cookies. Does
>>> it? Are there other ones too?
>>>
>>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.