473,796 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cross sub-domains session sharing

I have 2 domains X.AAAA.BB and Y.AAAA.BB and I would like to share
sessions values between them.

According to the cookie specification it is possible to create a
cookie with a common domain setting: .AAAA.BB. Thus the browser will
send back the cookie to both of the web sites X.AAAA.BB and Y.AAAA.BB.
(cf. http://www.cookiecentral.com/faq/#3.3)

Is it possible to ask the .Net framework to set the session cookie to
..AAAA.BB instead of the full domain name of the current web site?

Many thanks for your help,
--
Benoît Rigaut
Nov 18 '05 #1
1 1481
by default no. nor is it possible with inproc sessions (as the session data
is in the appdomain of the vdir). if you use out of process sessions, and
take over session management you can do it.

-- bruce (sqlwork.com)
"Beno?t Rigaut" <br*****@printe mps.com> wrote in message
news:87******** *************** ***@posting.goo gle.com...
I have 2 domains X.AAAA.BB and Y.AAAA.BB and I would like to share
sessions values between them.

According to the cookie specification it is possible to create a
cookie with a common domain setting: .AAAA.BB. Thus the browser will
send back the cookie to both of the web sites X.AAAA.BB and Y.AAAA.BB.
(cf. http://www.cookiecentral.com/faq/#3.3)

Is it possible to ask the .Net framework to set the session cookie to
.AAAA.BB instead of the full domain name of the current web site?

Many thanks for your help,
--
Benoît Rigaut

Nov 18 '05 #2

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

Similar topics

23
6549
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the queue, grab it and run a system command. Now I want to make sure that system command doesn't hang forever, so I need some way to kill the command and have the worker thread go back to work waiting for another queue entry.
2
1337
by: genojoe | last post by:
In simplified form, I have an RTF control and a timer. I use the timer to do an autoresave for the RFT control every 5 minutes. Here is the abridged code. Private Sub tmrAutoRecover_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrAutoRecover.Tick Dim t As New Threading.Thread(New Threading.ThreadStart(AddressOf delDoAutoBackup)) t.IsBackground = True t.Start() End Sub
8
4856
by: Pieter | last post by:
Hi, I'm having some weird problem using the BackGroundWorker in an Outlook (2003) Add-In, with VB.NET 2005: I'm using the BackGroundWorker to get the info of some mailitems, and after each item I want to raise the ProgressChanged-event to update the DataGridView. It works fine when only one Progresschanged is fired, but at the second, third, fopurth etc it raises everytile a 'Cross-thread operation not valid"-exception on lmy...
3
7602
by: David Cartwright | last post by:
Hi all, I'm having a weird time with a call to the Refresh() method of a DataGridView. I have a VB.NET 2005 Windows application with a main form and a "worker" thread. The main form delegates a Sub to the worker so that the latter can refresh the DataGrid after updating the DataTable driving it. When I run the app under the debugger, everything's fine. But when I run it for real, it hangs, apparently in the Refresh() method of the...
5
3605
by: nospam | last post by:
Hi all. I have encountered a "Cross-thread operation not valid" error in a test program I created and although I have came up with a solution I don't like the performance of the program. I hope perhaps some experts here can help me out. Here is what my program consists of: 1) A form containng several tabs, one of which contains a ListView
7
8154
by: Paul | last post by:
Hi, I'm having a problem with my app. All its supposed to do is put the word "Check" in a listbox every 2 seconds! I'm getting a System.InvalidOperationException error, more specifically, "Cross-thread operation not valid: Control 'ListBox1' accessed from a thread other than the thread it was created on." Please help! Here's my code... Thanks, Paul
6
2159
by: greek_bill | last post by:
Hi, I'm interested in developing an application that needs to run on more than one operating system. Naturally, a lot of the code will be shared between the various OSs, with OS specific functionality being kept separate. I've been going over the various approaches I could follow in order to implement the OS-specific functionality. The requirements I have are as follows :
1
1908
Raventara
by: Raventara | last post by:
Hi peoples.... This is a pain in the ass: Cross-thread operation not valid: Control 'TextBox1' accessed from a thread other than the thread it was created on. I am trying to update the text in the textbox when data is recieved on the new SerialPort control. So I added the following: Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
1
1489
jamesd0142
by: jamesd0142 | last post by:
Hi again, Im using vb 2005 Im using this code to watch a folder and log any changes etc... Imports System.IO Imports System.Diagnostics
11
2966
by: Simon van Beek | last post by:
Dear reader, By opening an application I get always the main Access window with the closing cross in the above right corner. Is there a possibility to make this closing cross invisible? All the settings in the Start-up form under Tools are disabled but the closing cross in the above right corner is still visible.
0
9680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10455
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10006
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.