Umbraco 8 is asking to login again on every refresh - custom section
I created a custom section in Umbraco 8 CMS. In other words I extended Umbraco 8 CMS with an extra component.
Everytime I refresh (F5) a page (within my custom section), Umbraco is asking me to login again. What javascript/angular method to use so to avoid this?
Apparently I need to add some credentials or state in the current session. How to do that?
I created a component for Umbraco 8 CMS. I want to manage some custom data in the database. I add access to the current user to access this component. Everything seems to work fine.
Problem
Every time I press the Refresh (F5) button I got redirected to the Login page.
How to avoid this?
i tried with userService.refreshCurrentUser(); but this not working.
Umbraco 8 is asking to login again on every refresh - custom section
I created a custom section in Umbraco 8 CMS. In other words I extended Umbraco 8 CMS with an extra component.
Everytime I refresh (F5) a page (within my custom section), Umbraco is asking me to login again. What javascript/angular method to use so to avoid this?
Apparently I need to add some credentials or state in the current session. How to do that?
Sherlon, I suggest to add more details about your goal and what conflict you encounter with Umbraco routing. (screenshots or code)
Also how it is the credential you need since umbraco have a startup page login and a redirect to a section ?
Situation
I created a component for Umbraco 8 CMS. I want to manage some custom data in the database. I add access to the current user to access this component. Everything seems to work fine.
Problem
Every time I press the Refresh (F5) button I got redirected to the Login page.
How to avoid this? i tried with
userService.refreshCurrentUser();
but this not working.Are you calling a function which makes user logged out ?
What Umbraco service are you calling on the component load ?
Im calling only this service:
Sherlon, I viewed your other post related to this topic and I suggest to review how Umbraco managing application states.
===========
i.e the url may become like the following:
The url in my browser is exactly like that :-(
I noticed that the url is not added to the browser history..
The solution was to encode the url i'm passing:
Sherlon, I suggest selecting an answer which may simplify searching for the solution post and avoid having many posts without a selected solution.
is working on a reply...