473,725 Members | 2,276 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SessionState does not work with subdomain forwarding with masking (2.0)

Hello all,

It seems like subdomain forwarding prevents ASP.Net session state from
working correctly.

Example: two websites http://www.jgphotographers.com/test and
http://picturestore.newpicturestore.com/test
- the first one works - the counter using session state increases every time
the button is clicked.
The second one uses subdomain forwarding with masking. The "picturesto re"
subdomain is being forwarded to the first URL, but this time the same
application accessed via forwarded subdomain does not work. Every time the
button is clicked the SessionID changes and the counter does not increase.
It is really the same application - see the Request.Url. All web.config
settings default.

Is it a known issue? Any ideas on how to solve it?
I am afraid this problem may become my show stopper.

Thank you,

Tomasz
Nov 28 '06 #1
1 2490
This is because the browser wont give the subdomain your session cookie as
its from a different domain name, This will cause the problem. You need to
change the session mode to be cookieless (web config) so its in the url.

Ciaran O'Donnell


"thomas" wrote:
Hello all,

It seems like subdomain forwarding prevents ASP.Net session state from
working correctly.

Example: two websites http://www.jgphotographers.com/test and
http://picturestore.newpicturestore.com/test
- the first one works - the counter using session state increases every time
the button is clicked.
The second one uses subdomain forwarding with masking. The "picturesto re"
subdomain is being forwarded to the first URL, but this time the same
application accessed via forwarded subdomain does not work. Every time the
button is clicked the SessionID changes and the counter does not increase.
It is really the same application - see the Request.Url. All web.config
settings default.

Is it a known issue? Any ideas on how to solve it?
I am afraid this problem may become my show stopper.

Thank you,

Tomasz
Nov 28 '06 #2

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

Similar topics

2
2245
by: Bill Borg | last post by:
Hello, I have a couple web services that I use across my apps. My isp supports exposing them either via subdomain (e.g. services.mydomain.com) or subfolder (e.g. mydomain.com/services). Are there any implications for doing it one way versus another? Performance? Security? Thanks, Bill
1
2283
by: perspolis | last post by:
Hi If I want to create subdomain for my site dynamicaly how can I do that with ASP.NET? or is it possib;e to create subdomain with IIS?? thanks
1
2470
by: Randall Parker | last post by:
Does the SessionState timeout field in Web.config control how long a logged in session will stay logged in? For example, I want my users to be able to log in once during their work day and for their log-ins to remain valid for 12 hours. Is this below the way to do it? <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
2
1981
tolkienarda
by: tolkienarda | last post by:
hi all i have a wildcard subdomain that will redirect all subdomains to one page. this page is a php script that will read the what subdomain they entered and if it is valid it will redirect to the apporiate page and if not it will go the the home page. the reason i am doing this is because of a client who apparently has major intelligence issues. but the problem is that i don't know how to get the full url they entered in....
2
2396
by: =?Utf-8?B?U3Bpcml0RmxhZw==?= | last post by:
I want to configure different sessionState on different subdirectory,so I wote this code in wen.config file: <location path="SubInProc"> <system.web> <sessionState mode="InProc" cookieless="AutoDetect" timeout="20"/> </system.web> </location> <location path="SubSQLServer"> <system.web> <sessionState mode="SQLServer" cookieless="false" timeout="20"
0
1703
by: Greg | last post by:
Is it possible for authentication using asp.net membership to persist from a site to a subdomain? The scenario I want to provide is: User browses to the page somesite.com and logs in. User clicks on link that points to the subdomain demo/somesite.com. Is it possible to retain the authentication information for the subdomain, so that there is no need to log in again?
3
33712
by: a2rodger | last post by:
I am using the following function and parse_url() to attempt to grab the subdomain from my sites url function selfURL() { $s = empty($_SERVER) ? '' : ($_SERVER == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER), "/").$s; $port = ($_SERVER == "80") ? "" : (":".$_SERVER); return $protocol."://".$_SERVER.$port.$_SERVER; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } $url = selfURL(); $uri =...
0
2158
by: devilsjunk | last post by:
Hello Everybody, In my web application I have created an interface where, if any user register then a subdomain will be created with the user name of the user link this manner E.G. :- http://subdomain.domain.com This works fine. Now if any user name contains special character like underscore then the subdomain only takes the character before underscore. For example if I register with devils_acc06 then the created subdomain URL is...
1
1689
by: Josh | last post by:
I have a question about subdomains. I would like my website to have subdomains that essentially show my regular main website, except that the subdomain passes as a variable on all pages so that I can use the subdomain as a variable to customize details. For example, the home page at www.thesite.com would have a set of information displayed, but the subdomain (subdomain.thesite.com) would display certain additional details. Am I...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9257
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...
0
9116
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
8099
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...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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.