Session State Anti-Pattern
Posted
by
Curiosity
on Stack Overflow
See other posts from Stack Overflow
or by Curiosity
Published on 2013-11-04T21:34:53Z
Indexed on
2013/11/04
21:53 UTC
Read the original article
Hit count: 204
I know the SOLID principles and other design patterns fairly well and have been programming for some time now - seeing many a bit of code throughout the years. Having said that, I'm having trouble coming up with a name to give the pattern, or lack thereof, to bits of code I've been dealing with at a current engagement.
The application is an ASP.NET C# WebForms application, backed by a SQL Server/Mainframe backend (more mainframe than backend) and it's riddled with Session State properties being accessed/mutated from multiple pages/classes.
Accessing/mutating global variables/application state was usually shunned upon while I was in school. Apparently the creators of this magnificent application didn't think it was such a bad idea.
Question:
Is there a name for such a pattern/anti-pattern that relies so heavily on Session State? I'd like to call the pig by its name ...
© Stack Overflow or respective owner