为多个域设置的django cookie

时间:2019-01-18 10:35:36

标签: python django session cookies

我有两个域constructor(props) { super(props); this.state = { data: '' } } componentDidMount() { this.setState({ data: localstorage.getItem('data') }) } render() { return ( <> <AppContext.Consumer> {context => ( <> {typeof context.state.data !== 'undefined'&& <div> {/*Print out data from this.state or from context.state*/} </div> } </> )} </AppContext.Consumer> </> ) } www.momo.com/dumpling

我想在dumpling.momo.com中设置cookie,并想在另一个中检索。如何实现?我需要在dumplings.momo.com中指定这两个吗?

0 个答案:

没有答案