Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session variables lost in forwarding

Status
Not open for further replies.

derketa

Programmer
May 13, 2002
43
0
0
TR
Hi,

I'm having a problem with session variables that I think you guys can help me with.
I forward the requests to to my webspace, which is in I use stealth mode in forwarding.
So far, so good.

However, when I try to use sessions under the directories of address1/... my session variables are lost. The only way I can use sessions is using the direct addresses (address2)
What must be done to keep those session variables? Thanks in advance for your valuable support.

Yours,
Rukiye Yilmaz
 
You can't use cookie-based sessions across multiple domains, as cookies, themselves, are limited to a single domain.

One workaround, I think, is to use session_get_cookie_params(), but some browsers have security features that will will prevent a page in one domain to set a cookie in another.

You can also pass the session ID on the URL.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top