Thanks a lot, Phil. I really appreciate your help.
My issue is really weird. User logs in, then i log out doing
session.delete() or invalidate() - doesn't matter. And then user
reloads the page... and all his session data is in place...
Works perfectly on the local mashine and without proxy out there.
If i delete the cookie in the browser - everything's fine, new
session.
I think that deleting the user's cookie can solve this one. Is there a
way to do this in Beaker?
I cann't use memcached, because i store SA session there, which cannot
be pickled.
Is there any real advantage in this type? I can think of something if
it'll make a difference.
I don't use authkit. I don't think i really need the regular cookie
behavior (users coming back and automaticly loggin in by the cookie)
Can you please share some code piece where you take advantage of Etag?
As far as I can see from here Apache has to be the one in charge for
setting it. I can be wrong.
I'm also an advocate of clear and straight forward code, but this
proxies leave me no choise.
Ben tipped me to change base controller to look like this
class BaseController(WSGIController):
def __call__(self, environ, start_response):
response.headers['Pragma'] = 'no-cache'
response.headers['Cache-Control'] = 'no-store,no-cache,must-
revalidate,max-age=0'
return WSGIController.__call__(self, environ, start_response)
but this made no difference...
On Feb 6, 10:37 pm, Philip Cooper <[EMAIL PROTECTED]> wrote:
> Proxies can generate all kids of subtile issues so this will probably
> NOT answer your question, but it's a start.
>
> First consider the memcached for beaker (if you have mutiple machines
> on your end).
>
> Second, Beaker is not responsible for the authkit cookie. That's
> handled by middleware before it get's to you controller code. (you
> didn't say how you authenticated or were you only talking about
> session cookies?)
>
> If you don't already, try setting an Etag. Not all proxies respect
> them properly but this could fix you problems entirely.
>
> Some suggest adding some random cruft to the query string but for me
> that too ugly for words...but I do all sorts of uglies when I'm backed
> into a corner.
>
> if that doesn't help I'd need more specifics...good luck
>
> --
> Phil
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---