Phoenix Auth Example

so basically :

  1. Multi Session is just like facebook, gmail or github, you can login anywhere without terminating other session
  2. Single Session is, when you login (new session), your old session will be terminated (logged out)

Multi Session Tech :

  • I only use phoenix session to save session data

Single Session Tech :

  • I use ETS for saving where this username is assigned for (*for guid cookie)
  • Phoenix session to save session data
  • I prefer to use redis (ETS replacement for scaling)

Github :

1 Like