List Info

Thread: String encoding in cookies make them be rejected by PHP




String encoding in cookies make them be rejected by PHP
user name
2006-12-14 23:34:12
Hi again,

I currently have a problem with cookies created by cherrypy.
Looks like
any string value stored in a cherrypy cookie is
"encoded" with double
quotes as part of the cookie value.
Example:

(Pdb) p cookie['cookie_email'].__dict__
{'coded_value': '"xxxfluxent.com"',
'value': 'xxxfluxent.com', 'key':
'cookie_email'}

The coded vale seems the be the one I find in the cookie.

I am wedging cherrypy code between old PHP pieces, so the
cookies have
to be compatible between PHP and cherrypy, or I am up the
creek.

My PHP system sees the cookie like this:

ARGH! Bad email passed: "xxxfluxent.com"

How do I ask cherrypy to stop encoding my cookie string
value, so PHP
will accept it?

many thank yous in advance,
Gloria


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

String encoding in cookies make them be rejected by PHP
user name
2006-12-18 21:03:10
Well, I managed to work around this problem by changing the
PHP, so
that it converts the cookie to what it needs to see.

But, I still want to know how to control cookie encoding in
CherryPy.

Can someone point me to a doc? It's not easily found through
a web
search.

Thank you,
Gloria


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )