Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

php - quantity of data that should be stored in session -


assumption
understand it's not store data , needed simple.

state today
use minimum needed , using simple data types (int , strings)
storing user's id , tell if logged in.

must of functions static or singleton has built each post/get.

have trouble representing current state , changing it.
, largely static site.
of state representing goes javascript .

target
other hand if i'll create object represent entire website easier me maintain user's input , including database interaction.

simple question, how data should stored there?

example

1 of things want implement objects relate database tables,
let's take page "car.update()".

if store object it, extends connection database methods
crud.

when handle post page details put them in properties needed , call update method.

situation now: need create new object details , make static update

another example

storing previous search result , filter using new data

in many cases ideal amount none. store username in cookie along hmac hash used verify cookie created site, , else database (or cache) needed. makes easy load balance across servers because server can handle request , there's no state needs shared between them.

this approach wouldn't appropriate banking or other top-security uses because if gets cookie connect you. sites you're not doing super critical it's great. risk can mitigated adding expiration mechanism cookie handling. see chubbards great answer related hmac question more info.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -