Hi,

On 18/03/2013 08:51, vijay wrote:
Hello,


We are using Pylons for our portal and we want to use client side
cookies to store some information through python.

Scenario :

  When user comes to portal we want to store its location information in
cookies and also want to retrieve that information (not from Javascript
or HTML),

We want to set and get the cookies in python only (in Model or in
controller)...



Could you please let us know if there is any sample code to do this


You can use a beaker session for that. There is a cookie based backend:

http://beaker.readthedocs.org/en/latest/sessions.html#cookie-based

https://beaker.readthedocs.org/en/latest/modules/session.html?highlight=cookie#beaker.session.CookieSession

We are stuck because of the issue which is affecting our progress and
hence, business.

Would really appreciate your help.

Looking forward to your response and support…


Thanks,

Vijay Bhosale.


--
You received this message because you are subscribed to the Google
Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to