468,784 Members | 1,529 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,784 developers. It's quick & easy.

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 "picturestore"
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 2281
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 "picturestore"
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by perspolis | last post: by
1 post views Thread by Randall Parker | last post: by
tolkienarda
2 posts views Thread by tolkienarda | last post: by
2 posts views Thread by =?Utf-8?B?U3Bpcml0RmxhZw==?= | last post: by
1 post views Thread by Josh | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.