Evert Rol wrote: > As mentioned, I'm using the g variable (removing the attribute when > not needed), not session. Which one would be better? Is g perhaps > tied to the application, ie if multiple users use it, they all use > the same g variable, but session is still (browser/ip-address) user- > dependent? Sorry, I'm still a newbie, so I'm not t0o clear on this.
You definitely don't want to use g, which is truly application-global. That means separate threads see the same g, and certainly separate requests even if they come from different users. Sessions are tied to the user, which means (roughly) that regardless of threads you'll get the correct information about the user. Everything else you're doing sounds quite reasonable and clean and nice for the user, so if you just switch to sessions you'll be quite reasonable and clean and nice *and* safe. ;-) -Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
