When a user opens a browser and goes to a page on our site, it seems
that session cookies are not available.  It's only after they have
been to at least one page that a cookie is available.  For instance,

from pylons import request, response, session

if 'session-id' in session:
  ## do something
else:
  session['session_id'] = some_session_id
  session.save()
  ## do other stuff

When first coming to a web page, a new cookie is *always* being
created because the IF test *always* fails because the session id is
not found.  I was hoping that it would be found; that way, previously
entered data can be recouped.

Perhaps I am just not understanding the cookie mechanism.

Thanks.
Edgar

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

Reply via email to