Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Session.IsNewSession with  Firefox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zhangming Su - 11 Oct 2007 21:44 GMT
Hi,

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

Z. Su
Nicholas Paldino [.NET/C# MVP] - 11 Oct 2007 22:00 GMT
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?

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi,
>
> Can any one tell me why Session.IsNewSession doesn't work with Firwfox
> broswer?
>
> Z. Su
Zhangming Su - 12 Oct 2007 14:53 GMT
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.

> Zhangming,
>
[quoted text clipped - 8 lines]
>>
>> Z. Su
Göran Andersson - 12 Oct 2007 20:42 GMT
> Nicholas,
>
[quoted text clipped - 5 lines]
> 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.

Signature

Göran Andersson
_____
http://www.guffa.com

Göran Andersson - 11 Oct 2007 23:47 GMT
> 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?

Signature

Göran Andersson
_____
http://www.guffa.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.