I'm working on developing a page that pulls data down only via ajax: http://itprojectguide.org/projectmatrix/itprojectguideprojectmatrix.html
the page currently pulls a status json data file.
To authenticate I'll be adding a preliminary signin (user name/password) and I'm thinking about doing the following to ensure a valid logged in user is present:
- when signing in, send the user ID, and md5 hased password - the server will return a encrypted string containing User ID, signin date, level
- I will pass this encrypted string to all pages, each page will send the string and page type to the server - the encrypted string will be validated to ensure valid user and that the user has signed in within the last 24 hours (based on the date). Data will be returned based on the user's level and the page that the user is on + any page specific data (say date range or company ID depending on the date)
Will the use of the encrypted User ID, signin date, level ensure proper security? I'm looking not to use cookies...is there a better way?
Part of this effort is to use ajax/json only interaction to retrieve data for each page instead of rendering it on the server..