G
Guest
I need to calcuate (and save) the amount of Bandwidth used by each of my
customers. Any help/ideas would be appreciated(?)
I have a website that is using Forms Authentication. Each customer is
authenticated against a "Customers" table in a SQL server database. I was
thinking about creating another table ("CustomerUsage" and stored procedures
to insert/update) that would accumulate the number of bytes sent by IIS for
each page (for each customer - and a DateTime field so I could see daily
usage).
Here's how I think it could work: At the end of each Page_Load() event, I
could calcuate the total number of bytes the Response object is about to send
(Page.Response.OutputStream.Length). I could then accumulate this data for
each customer.
Will this approach work? Is there a better way to do what I want in a
shared hosting environment?
Thanks.
customers. Any help/ideas would be appreciated(?)
I have a website that is using Forms Authentication. Each customer is
authenticated against a "Customers" table in a SQL server database. I was
thinking about creating another table ("CustomerUsage" and stored procedures
to insert/update) that would accumulate the number of bytes sent by IIS for
each page (for each customer - and a DateTime field so I could see daily
usage).
Here's how I think it could work: At the end of each Page_Load() event, I
could calcuate the total number of bytes the Response object is about to send
(Page.Response.OutputStream.Length). I could then accumulate this data for
each customer.
Will this approach work? Is there a better way to do what I want in a
shared hosting environment?
Thanks.