Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have two websites.I have uploaded the both website in given subdomain

1)test.example.com
2)run.example.com

Locally its working fine but in server its not working.I wanted to share session between this application.using sql server as session mode.I done those activity based on given websites.

Sharing session
Posted

1 solution

You can't read cookies Or Session from one domain in another domain. That's a security thing implemented in the browser. Using a database for your sessions allows you to have multiple servers/Domain can share sessions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900