Skip to main content
Inspiring
July 5, 2011
Answered

shared object why? if you have all the data already in a mysql database

  • July 5, 2011
  • 2 replies
  • 403 views

Hi.

I see that a shraed object can be used to hold data locally ie: which avatar you are using, what level you are on and what screen you are presently on. But why do you need or use a shared object if you have all that info on a mysql database anyway.

On top of all that, a shared object can get wiped as you clear the cache as many people have. Moreover, governments are looking into cookies and they are starting to get blocked.

ie: We don't really need then do we?

This topic has been closed for replies.
Correct answer

I quite often store a username in a shared object and prepopulate the login form

most browsers will do that for html textboxes anyway

you could also add a 'remember me on this computer' option to log straight in, then you'd save username and password


your site might only need login for certain privelidges, like posting in a forum. You might want to save preferences to shared object so they are applied before login

btw, the shared object isnt a cookie. clearing cookies, cache and browser history doesnt effect the shared object. In fact I bet most users dont know how to clear it.

2 replies

Correct answer
July 7, 2011

I quite often store a username in a shared object and prepopulate the login form

most browsers will do that for html textboxes anyway

you could also add a 'remember me on this computer' option to log straight in, then you'd save username and password


your site might only need login for certain privelidges, like posting in a forum. You might want to save preferences to shared object so they are applied before login

btw, the shared object isnt a cookie. clearing cookies, cache and browser history doesnt effect the shared object. In fact I bet most users dont know how to clear it.

Inspiring
July 12, 2011

thanks

Ned Murphy
Legend
July 5, 2011

If you have something that is supported by a database then you have a vehicle for storing status information and probably have no need for using shared objects, provided there is something in the way of a login system in place to be able to isolate data to specific accounts.