Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8745771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:05:23+00:00 2026-06-13T12:05:23+00:00

I already saw some examples about realising a session in ember with a Router

  • 0

I already saw some examples about realising a session in ember with a Router approach, but also some statements about simply using the StateManager.
Given that I have a Restful backend, I have to send my credentials every time to my service. For that I simply want to store the credentials in a session at the frontend. Should I just store the credentials in a “LoggedIn” state of the StateManager or use another approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:05:24+00:00Added an answer on June 13, 2026 at 12:05 pm

    You should isolate your needs, as it seems to me you are trying to address two aspects here:

    • Authentication, passing credentials to your backend,
    • Authenticated state & attributes.

    BTW, even if you are simply intending to manage first point, the following will still apply… 🙂

    Ember is really good at managing your app’s state w/ router & al.
    But when speaking about authentication, it is something that have to deal with backend and has almost nothing to see with your SPA state. It’s a kind of transversal issue, not to be managed by your Ember router instance at all, IMO (and I am not alone: see this tweet & replies). You should so manage the auth outside the Ember app, even before serving the SPA, using stuff like Devise, Sorcery, …

    This being said, once you have a session established between your browser & the backend, your will be able to include statically some data from your logged user inside the page, which will be accessible to your app for use (user name, profile data, …).

    If you really still want to manage logged-(in/out) state in your router, you can also have a look at this answer, but I finally changed my mind on this topic, as I explained before.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a newbie programmer, but I already saw some things that can be done
I saw some threads on this already on Stack, but wanted a little more
I already make some search on the forum and on google about initializing and
I already know about Ghostscript front end viewers; but I was wondering how gs
I saw some tutorials for auto login for exemple this one link , but
I saw some similar questions with different solutions, but I want to know if
I decide to write some applications using facebook and django (or even twisted, but
I already saw an answer here , but it didn't really answer my question.
In C# I saw already the SpriteBatch class (In the XNA plugin for XBOX
I saw this: Detecting if a program is already installed with NSIS . I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.