See: http://docs.djangoproject.com/en/dev/ref/settings/#setting-SESSION_COOKIE_DOMAIN
Graham On Apr 2, 8:28 pm, coulix <[email protected]> wrote: > Hi, > > i have the following domainwww.foo.comand an alias foo.com > When i post a comment i want to redirect to the submit page so i use a > wrapper for this: > > def comment_posted( request ): > if request.GET.has_key('c'): > comment = get_object_or_404(Comment, pk=request.GET['c']) > return HttpResponseRedirect( comment.get_absolute_url() ) > return HttpResponseRedirect( "/" ) > > So far so good, > > It looks at Site domain name which is set to "edoboard.com" > > The problem if that when user is logged in onwww.edoboard.com, after > a comment is posted he is redirected to foo.com/view/posting and it > seems to be a completely different story since he is not logged in on > edoboard.com !. I want edoboard.com andwww.edoboard.comto share the > same sessions. > > Using the referer is not a solution because in case the comment is > invalid i get to the page /comments/post/ to edit and fix it, where > the referer become invalid :/. > > In any case my Apache & nginx conf are following: > > Nginx > > server { > listen 11.111.111.111:80; > server_namewww.edoboard.comedoboard.com; > > Apache > <VirtualHost 127.0.0.1:80> > ServerAdmin [email protected] > ServerNamewww.edoboard.com > ServerAlias edoboard.com > ........ > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

