.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

New Session

Posted By: DPK     Posted Date: August 27, 2008    Points:2   Category :ASP.Net
hello Friends!

I am checking my site counter so I m working with Application object, I am incrementing "application["Counter"]" object in Session Start event.

Now porblem as I run my website the value coming is 2 it is fine. but when I copy URL and open a new firefox and paste this URL of its address bar my page is opening with the value 2 while now value should be 3, means my session start event is not being fired.

But when I close the dotnet server from the TASK bar and rerun the website then I am getting one incremented value.

Please help me.

thanks In advance.

Author: Pankaj Mishra             
Posted Date: August 27, 2008     Points: 5   

This is expected because your session is not been Expired/killed and used same session value even thou you open in a new browser. And i feel this is correct. When session gets expired the it will increment the value.


Author: DPK             
Posted Date: August 27, 2008     Points: 5   

Ya you are right pankaj Thanks... :)

Author: Sandeep Tripathi             
Posted Date: July 12, 2012     Points: 20   

Dear DPK,

what you need to do is to kill your session which u r not doing...do it with sission.dispose();.hope it will work

Thanks and regards,

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend