Last post Feb 09, 2012 09:44 PM by Santoshkmr123
Jan 29, 2012 02:50 AM|Santoshkmr123|LINK
i want to find the number of login users every time when a login is done and but when i am creating it in asax file , there i have taken the application variablel to store the session of each login account but after closing the browser when i am again login
the account the session is expired and count is again is started from first one give the answer with code soon..............also how to store and retrieve the session with code reply me.............
Jan 31, 2012 02:11 AM|Qi Wu - MSFT|LINK
If you want to statistics the number of users you can use the application variable. You can check whether the user has existed in the database. If it has existed you can increase the value of application variable. If you have used application variable you
may need to check whether the application has value or not. If the application variable isn’t null you don’t need to initialize it again.
Jan 31, 2012 11:32 AM|roopeshreddy|LINK
Use Application State! It best suits your problem!
Hope it helps u...
Jan 31, 2012 01:15 PM|Santoshkmr123|LINK
i want to find the every time user visit the web site so i want to store the session of each user and show the visiter number every time when user see the web site please provide me the code....
Feb 01, 2012 09:36 AM|roopeshreddy|LINK
protected void Application_Start(object sender, EventArgs e)
Application["VisitorNo"] = 0;
protected void Session_Start(object sender, EventArgs e)
int VisitorCount = int.Parse(Application["VisitorNo"].ToString());
Application["VisitorNo"] = ++VisitorCount;
protected void Page_Load(object sender, EventArgs e)
Response.Write("Visitor No:" + Application["VisitorNo"].ToString());
Feb 09, 2012 09:44 PM|Santoshkmr123|LINK
thank's sir i got the answer...