471,046 Members | 935 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,046 software developers and data experts.

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 2356
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

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.