Skip to content

Cookies and LocalStorage: provide a basic example #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
niksubramanian opened this issue May 15, 2017 · 3 comments
Closed

Cookies and LocalStorage: provide a basic example #22

niksubramanian opened this issue May 15, 2017 · 3 comments

Comments

@niksubramanian
Copy link

Hi there,

First of all, wonderful work on the docs - I went through them and found them to be a pleasure to use and implement.

A point of improvement would be to give an example on:

  • how to handle setting and getting localStorage.
  • how to handle setting and getting a cookie.

I'd argue this would be useful for a number of reasons:

  • There seems to be a general lack of documentation about this issue, resulting in a number of unanswered questions in the forum, such as these: example 1, example 2
  • Most sites that require the complexity of SSR probably also require handling login/authentication management.

Thanks in advance, and keep up with the great work!

@znck znck added the question label May 15, 2017
@niksubramanian
Copy link
Author

Perhaps to get the ball rolling on this issue: I'd love to contribute, but I'd need at least some pointer on how to solve these issues at a more general level. If anyone can point me in the right direction, I wouldn't mind writing the docs required to solve this issue.

kazupon added a commit that referenced this issue Jul 9, 2017
* Translate SUMMARY.md via GitLocalize

* Revert "Chinese Translation: zh/summary"

* Revert "Revert "Chinese Translation: zh/summary""

* Japanese Translation: ja/css.md (#19)

* Translate css.md via GitLocalize

* Translate css.md via GitLocalize

* Update css.md

Remove style closing tags

* Translate css.md via GitLocalize

* Update css.md

* Translate api.md via GitLocalize

* Translate streaming.md via GitLocalize (#22)

* Translate caching.md via GitLocalize (#23)

* Japanese Translation: ja/routing.md (#18)

* Translate routing.md via GitLocalize

* Translate routing.md via GitLocalize

* Translate universal.md via GitLocalize (#29)

* ja/api.md (#28)

* Translate api.md via GitLocalize

* Translate api.md via GitLocalize

* Translate api.md via GitLocalize

* Translate api.md via GitLocalize

* Translate build-config.md via GitLocalize (#27)

* Translate build-config.md via GitLocalize

* Translate build-config.md via GitLocalize

* Translate build-config.md via GitLocalize

* Japanese translation: bundle-renderer.md (#30)

* Translate bundle-renderer.md via GitLocalize

* Translate bundle-renderer.md via GitLocalize

* Translate basic.md (#32)

* Translate basic.md via GitLocalize

* Translate basic.md via GitLocalize

* Translate basic.md via GitLocalize

* Translate basic.md via GitLocalize

* Japanese Translation: ja/data.md (#25)

* Translate data.md via GitLocalize

* Translate data.md via GitLocalize

* Fix typos

* コード内のコメントを日本語に翻訳した

* コード内のコメントの意図をより明確にした

* expose はモジュールとしての公開するという意味なので訳を変更した

* 原文に ... とあるので一応残しておく

* "Client Side Hydration" の翻訳 (#36)

* Translate hydration.md via GitLocalize

* Translate hydration.md via GitLocalize

* Japanese Translation: ja/head.md (#33)

* Translate head.md via GitLocalize

* Translate head.md via GitLocalize

* expose はモジュールとして公開するという意味なので公開という言葉を使うようにした

* コードのコメントの翻訳が漏れていた

* Japanese Translation: ja/routing.md (#38)

* Translate routing.md via GitLocalize

* Translate routing.md via GitLocalize

* Japanese Translation: ja/caching.md (#37)

* Translate caching.md via GitLocalize

* Translate caching.md via GitLocalize

* translated the "source code structure" into Japanese. (#26)

* Translate structure.md via GitLocalize

* Translate structure.md via GitLocalize

* Translate structure.md via GitLocalize

* Japanese Translation: ja/SUMMARY.md (#35)

* Translate SUMMARY.md via GitLocalize

* hydration.md と合わせた

"Client Side Hydration" の翻訳 by hikimon · Pull Request #36 · open-source-translators/vue-ssr-docs
open-source-translators#36

* en/ に合わせてインデントを 2 にした

* Renderer 生成時の各オプションの階層を下げた。en/ でもそうなっている

* Japanese translation: readme.md (#39)

* Translate README.md via GitLocalize

* Translate README.md via GitLocalize
@Lokesh235
Copy link

Lokesh235 commented Jan 19, 2018

Hi,
I am a beginner here. Is there any doc available for SSR authentication problem pointed out by @niksubramanian ?

Trying to create a project with SSR veu and django as backend. In this set up need to use token provided by backend in each request. If I store token in state it is visible in html source and if I set httponly and secure_flag to True then I can't read cookie.

Hope to get some ideas to solve this issue. Thanks.

@abhineet97
Copy link

@niksubramanian, why did you close this issue? Did you find these docs elsewhere? If yes, then can you please share them with us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants