Hello I have a web application with 2 views. The first view checks if the session dictionary has a 'uid' key - if not it generates an random ID and puts it into request.session dict. The second view reads the uid from the session dict and creates a Project DB object with that uid. This works fine in all browsers (FF, Safari, IE), except Opera. Looks like Opera (Mac, 9.21.3678) doesn't accept the cookie with the session info. although cookies are on. Any idea why?
Thanks in advance. Daniel view: <pre> def index(request): if 'uid' not in request.session: request.session['uid'] = new_uid() # returns a random 50 char id webuser = request.session.get('uid') return render_to_response('index.html', { 'webuser': webuser }) def step1(request, pid): webuser = request.session.get('uid', '') if pid == 'new': project = Project(uid=webuser) # Project is a db model else: try: project = Project.objects.filter(uid=webuser).get(pk=pid) except ObjectDoesNotExist: raise Http404 return render_to_response(template, { 'project' : project, 'webuser' : webuser, }) </pre> template - step1.html: <pre> {% if not project.uid %}Cookies off - opera shows this message.{% endif %} </pre> --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---