Hello I need to test if the user's browser accepts cookies or not.. and i realized i can't use set_test_cookie() : That problem happens in a site which has a poll, included as a little block, in the homepage. The user is able to vote directly from the homepage just by clicking on the "vote" button and i don't have a "poll details" page in which he has to pass first. For that reason i don't have a view in which set the test cookie, apart from the homepage view... but i don't want to set a test cookie to every user who visit the homepage because voting the poll is not mandatory and then i'd have a lot of users with useless test cookies on their system (because i'd remove the test cookie only after the vote has been submitted). Is there a way to check the cookie availability in just one passage? Since i can call a view from another and return the new values... do you think it may work to call a "set cookie" view from the "submit vote" view and then in the submit vote check if the test cookie is valid? I'm just guessing...
Any help is greatly appreciated Thanks! Bye! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---