When I navigate to a page my session storage is cleared - I have a View which is set a "Default View"...from that View I open a Modal with 2 Fields, Username and Password, and a Login Button . In the OnClickLogin of the Modal I validate the User and the close the modal and refresh the parent. My User information is lost - CurrentUser id set to null then on.

asked 01 May '20, 19:35

ChrisG's gravatar image

accept rate: 55%

When navigating to a View that is set as Default View all session variable will be cleared and hence your CurrentUser will be cleared since it is part of the Session/Identity Token. If you remove the View from being a Default View the problem will be fixed.


answered 01 May '20, 19:36

ChrisG's gravatar image

accept rate: 55%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 01 May '20, 19:35

Seen: 787 times

Last updated: 01 May '20, 19:36

Related questions

Powered By:   Graphite