Results 1 to 3 of 3

Thread: Storing/creating a client-side 'session' object

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    22
    Vote Rating
    0
      0  

    Default Storing/creating a client-side 'session' object

    I'm creating my first large ext-js web application and I have a question about creating a client-side session object.

    In other web applications that I've built in the past, when the user authenticated via an AJAX request I would create a "user object" with properties returned by the server specific to each user. I would then serialize this object and store it as JSON in a cookie to be used by my application later. Is there an equivalent way of doing this with ext-js? Thanks!

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,177
    Answers
    3985
    Vote Rating
    1440
      0  

    Default

    You can still use cookies, it is the more cross-browser solution. Server-side is still the more preferred way.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    22
    Vote Rating
    0
      0  

    Default

    Okay cookies it is then, I use a combination of server-side session data (using a database to store session properties for security) and the non-sensitive data I share with the client for easier client-side access.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •