i gotta routing to fire off once a day,
What sort of routine...?
I figure the first hit of each day will cause it to run.
You mean the first time someone hits your website and, therefore, runs
Application_Start on any given day...?
would i keep track of that in the global.asax and a session variable?
Clearly you can't store this in a Session variable, because that will be
lost as soon as the Session times out automatically or is torn down
manually...
You also can't store this in an Application variable (I presume that's what
you mean by "keeping track of it in global.asax"?), because all your
Application variables will disappear when the last remaining Session times
out automatically or is torn down manually and Application_End fires...
The reason I asked what sort of routine this is is because, generally
speaking, ASP.NET is not particularly suited to this sort of thing for
precisely the above reasons - a Windows service or a SQL Server job would
almost certainly be a much better solution, if they are available to you...