Hi all,
I have just started a new job, and thought that i knew some stuff about .Net, but i am now seeing some code that has completly thrown me as to the benefits of it??
There is a start up page that loads, and within this start ups page load there is a routine that creates and instance of the main class for this application, and runs through a constructor that basically authenticates the user(not using the authentication model of .net). Then this object is persisted via session and is called on each page. Now even though in understand that i can be done, and i understand that its not a bad thing being able to persist an object via session state, but i dont really see the benefit of it???
From what i have learn using .Net for the last 12 months is that to persist user information its easier to use the built in classes to do so, and it is cleaner to instantiate and object as and when you need it.
The reason i am posting is i would like to here other peoples views on this, would be a good learning point for me.
Thanks,
Rob
I have just started a new job, and thought that i knew some stuff about .Net, but i am now seeing some code that has completly thrown me as to the benefits of it??
There is a start up page that loads, and within this start ups page load there is a routine that creates and instance of the main class for this application, and runs through a constructor that basically authenticates the user(not using the authentication model of .net). Then this object is persisted via session and is called on each page. Now even though in understand that i can be done, and i understand that its not a bad thing being able to persist an object via session state, but i dont really see the benefit of it???
From what i have learn using .Net for the last 12 months is that to persist user information its easier to use the built in classes to do so, and it is cleaner to instantiate and object as and when you need it.
The reason i am posting is i would like to here other peoples views on this, would be a good learning point for me.
Thanks,
Rob