Click here to Skip to main content
15,888,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I started the Firefox browser with the url using the process in C#.

C#
Process process = new Process();
process.StartInfo.FileName = "Firefox.exe";
process.StartInfo.Arguments = "localhost/test/Page1.aspx";
process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
process.Start();


So when the process starts, In the Page1.aspx am getting One SessionID.
Then through Ajax call a function is called from Page2.aspx
at that time that SessionID is coming as different in Page2.aspx.
Because of this reason the session assigned in Page1.aspx is not able to get in Page2.aspx


How to solve this ?

But If More then one instance of firefox is already running, then sessionID is coming as same...

Both Firefox and Chrome same problem is happening . .
Posted
Updated 11-Feb-15 19:26pm
v2
Comments
anup.bhunia 12-Feb-15 1:46am    
FYI, in asp.net 2.0, different sessionid is generated untill application access the session object. Check if that is the reason.
Christhu Raj R 12-Feb-15 1:55am    
Hi Anup
Am using asp.net greater than 2.0 , and accessing the session in Page1.aspx, but in page2.aspx am not able to get that sessions because of different SessionId.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900