You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ninja-framework
Hi All,
I am trying to set the domain name of the cookie dynamically.
I know that we can set it through application conf,but i need it to dynamically pick from the host from which a request comes.
Any suggestions and help will be gratefull.
Thanks,
Avinash
Raphael André Bauer
unread,
Mar 9, 2018, 4:10:29 PM3/9/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ninja-f...@googlegroups.com
Not sure if I understand it correctly. But if you don't specify the
application.cookie.domain property, then Ninja's sessions won't set
any domain. Which in turn means the session cookie is only valid for
the domain where the request comes from (the browser enforces this).
Is that maybe already what you have in mind?
Cheers,
Raphael
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ninja-framework
Hi,
Thanks for the reply.To explain things clearly.We have two domains xyz.com and abc.xyz.com. Until now we specified the domain as .xyz.com and both the domains authenticated perfectly.But now i want to be able to serve the domains with client's url(White labeling)-such as xyz2.com and abc.xyz2.com.So i want ninja session cookie to dynamically take domain name so that i can serve the cookie as per my need.