Forum Moderators: open

Message Too Old, No Replies

sessions problem

sessions losing value

         

saurabh kotnala2004

10:02 am on Mar 19, 2004 (gmt 0)



Hi,

I have a sub domain created under www.maindomain.com with url [subdomain.maindomain.com...]

Now when a user goes to [olddomainname.com...] he is redirected to [subdomain.maindomain.com...]

The address bar on the browser displays [olddomainname.com...] no matter which page in the subdomain(http://subdomain.maindomain.com) you are in.

The problem is i am using session variables and they lose their value on page transitions within the subdomain.(though they are created on the subdomain only and not on olddomainname)

(The above problem comes when i go to [subdomain.maindomain.com...] through www.olddomainname.com )

But my session variables work fine within the subdomain when i go to [subdomain.maindomain.com...] by actually typing [subdomain.maindomain.com...] in the browser. Also the url on the address bar shows the page i am in within the subdomain.

How do i make the session variables work for page transitions within the subdomain when i go to [subdomain.maindomain.com...] through www.olddomainname.com

I hope there is some server setting that needs to be changed .

Please help

Thanks,
Saurabh.

Xoc

7:38 pm on Mar 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How are you doing the redirect? Whatever it is, it probably accounts for the domain name problem.

I don't think you can keep session variables across a transfer like that that. The problem is that session ids are stored in cookies on the client's machine, and cookies are only sent to the same domain that created them.

f00sion

7:39 pm on Mar 31, 2004 (gmt 0)

10+ Year Member



you cant transfer sessions over different domains or directories.