Programming Practice for Server Side State Maintenance Variable