View Full Version : MVC + Login

23 Jan 2011, 11:56 PM
Trying to develop a little app in Sencha Touch with MVC. CUrrently strugling with the "login" bit of it all.

Currently myApp.js looks like this:

name: 'app',
defaultTarget: 'viewport',
tabletStartupScreen: '../resources/images/tablet_startup.png',
ui: 'dark',
launch: function() {
// this.login = new app.views.Login({
// application: this
// });
this.viewport = new app.views.Viewport({
application: this

What i'm looking for is the "login" view to be visible if there exist no sessioninfo. How can I achieve this?
And whats the best way to store session information in Sencha Touch?

Frank B

24 Jan 2011, 8:23 AM
You can't access session from the backend so you will need to use a call to the server to see if the user is logged in or not.