By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,319 Members | 2,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,319 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.