Posted: 10/4/2011
hi,
forgive me if this is a silly question, i've started work on my first "real" web site and have hit some doubt in my mind, could someone please just confirm if i'm on the right track...?
if i have a label control and in the page load have label1.text = membership.getuser.provideruserkey.tostring()... and from that all datacontrols feed off the userkey, will each user that visits the page see the right data or do i have to put the userkey as a querystring?
sorry, just one more quick question regarding this, is there any reason why i cant put a login control on every page and let the page refresh itself when the user signs in??? put it another way, is there a reason why the login control usually have its own page..???
thanks for the help in advance...
Posted: 10/14/2011
You can do whatever you want, its all about how secure and efficient you want your app to be. If your userKey is not a secret entity like a password, then you can use it in the query string. Alternatively you can put this in a Session object.