Well, how are you testing this? Are you sure you have cookies enabled?
Or, is there possibly some sort of plugin for FireFox that could be
interfering with the cookie that is being used for session management?
Thank you for your email. I swithered "trace on" in a .aspx file and tested
it in IE and Firefox. Both of them have ASP.NET_SessionId cookie. My page
decectes if Session.IsNewSession is true, the page will add an another
cookie.
When I open the page in IE as new Window, the cookie is added, but when I
open it in Firefox with a new Window, the cookie is not included.
Nicholas Paldino said:
Zhangming,
Well, how are you testing this? Are you sure you have cookies enabled?
Or, is there possibly some sort of plugin for FireFox that could be
interfering with the cookie that is being used for session management?
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Zhangming Su said:
Hi,
Can any one tell me why Session.IsNewSession doesn't work with Firwfox
broswer?
Thank you for your email. I swithered "trace on" in a .aspx file and tested
it in IE and Firefox. Both of them have ASP.NET_SessionId cookie. My page
decectes if Session.IsNewSession is true, the page will add an another
cookie.
When I open the page in IE as new Window, the cookie is added, but when I
open it in Firefox with a new Window, the cookie is not included.
As long as you are just opening a new window in the current instance of
the browser, you don't get a new session. All windows in the same
instance of a browser are in the same session.
There is only one instance of Firefox running at any time, as opposed to
IE, where you can have several instances. If you try to start a new
instance of Firefox, it will just open a new window in the current instance.
You can try out the difference in IE if you open a new window from the
current window, then you don't get a new session. It's only when you
start a new instance of the browser that you get a new session.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.