Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2005, 12:16 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default about broswer and session

there is a broswer,how to keep the same session when i great a new broswer

so please anyone help me

 
Old August 6th, 2005, 01:48 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This is a browser function and I don't think that you can change it. In I.E. if you launch a new browser with Control-N, you get the same session. The same may not be true with other browsers. If you launch a new I.E. browser separately (ex. from the desktop icon) it is a separate session. Sessions typically use a cookie that is in memory only and the independent browser window instances don't share that.

One of the few ways I can imagine to make session state work across browser window instances is to use your own session state management that uses a more permenant cookie which IS shared across browser instances.

-Peter
 
Old August 6th, 2005, 01:54 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I just played around with the browsers and found something of interest.

Internet Explorer:
Every launch from it's program icon creates a new windows process. If you launch it once, then hit Control-N, the same process handles the new windows. This is an example of shared in-memory cookies.

FireFox:
BOTH launching it from it's program icon as well as hitting Control-N use the same process. I assume this has to do with the tabbed browser feature of FireFox as well as why FireFox seems to share in-memory cookies (sessions) regardless of how you start a new window.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session MunishBhatia ASP.NET 2.0 Professional 1 April 30th, 2007 02:32 AM
session and cookie problem (empty session file) msincan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 27th, 2005 05:31 PM
session help -Dman100- Classic ASP Basics 1 November 29th, 2004 12:45 AM
session nav Beginning PHP 3 August 19th, 2004 02:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.