473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Session.IsNewSession with Firefox

Hi,

Can any one tell me why Session.IsNewSession doesn't work with Firwfox
broswer?

Z. Su
Oct 11 '07 #1
4 2117
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]
- mv*@spam.guard.caspershouse.com

"Zhangming Su" <su**@ExportTradingNetwork.comwrote in message
news:fe***********@cti36.citenet.net...
Hi,

Can any one tell me why Session.IsNewSession doesn't work with Firwfox
broswer?

Z. Su

Oct 11 '07 #2
Zhangming Su wrote:
Hi,

Can any one tell me why Session.IsNewSession doesn't work with Firwfox
broswer?

Z. Su
I'm sure that it's working just fine. If the property is false, then a
new session was not started.

In what situation doesn't it do what you expect, and what do you expect
exactly?

--
Göran Andersson
_____
http://www.guffa.com
Oct 11 '07 #3
Nicholas,

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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:eH**************@TK2MSFTNGP02.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Zhangming Su" <su**@ExportTradingNetwork.comwrote in message
news:fe***********@cti36.citenet.net...
>Hi,

Can any one tell me why Session.IsNewSession doesn't work with Firwfox
broswer?

Z. Su


Oct 12 '07 #4
Zhangming Su wrote:
Nicholas,

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.

--
Göran Andersson
_____
http://www.guffa.com
Oct 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dinkster | last post by:
BackGround: - We are new to ASP - We thought we would experiment with using the session object (in proc) to store a small amount of data. - We get different results when cookieless is set to...
2
by: David Popeck | last post by:
I have an ASP.NET application that is using forms authentication and I want to know when a session has timed out I have read quite a lot of posts here about this but no-one seems to have to same...
2
by: Ricky K. Rasmussen | last post by:
Hi NG, We have a rather large ASP.NET application that uses popups to display various dialogs to the user. In our work we've come over a rather annoying "bug": If we open a modal dialog using...
0
by: briand | last post by:
I have the following code in my base page to redirect to a session timeout page. override protected void OnInit(EventArgs e) { base.OnInit(e); //It appears from testing that the Request...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
3
by: catweezle2010 | last post by:
Hello NG, I have three files (default.aspx, search.aspx and work.aspx). The way is: login on default (if session is newsession). The loginname I write into as sessionvariable (username). So I...
4
by: Mark Rae | last post by:
Hi, I have a site which uses dynamic MasterPages. The selection of the MasterPage to use is determined by an encrypted QueryString. Session_Start looks for the presence of the QueryString,...
0
by: rsouza | last post by:
Hi. Recently here in my work we added the following code in the Global.asax file to handled the session expired and redirect users to the home of the site explaining them the occurred (some...
2
by: rsouza | last post by:
Hi. Recently here in my work we added the following code in the Global.asax file to handled the session expired and redirect users to the home of the site explaining them the occurred (some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.