Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

ASP.net session

i create a web site by ASP i need to store visitor data like IP address browser , location and session start date time and end time in a DB

1 Answer

James Churchill
STAFF
James Churchill
Treehouse Teacher

Mohamed,

I would check out the ASP.NET Session_OnStart event which is raised every time that a session is started.

https://msdn.microsoft.com/en-us/library/ms178583.aspx

Thanks ~James